HTML DOM Style cytuje własność
Definicja i Wykorzystanie
cytaty cytaty zestawy własności lub zwraca typ odniesień wbudowanych.
gramatyka
Ustawianie właściwości cytaty:
Object.style.quotes="none|string string string string|inherit"
Powrót cytuje atrybuty:
Object.style.quotes
值 | 描述 |
---|---|
none | 默认。规定 "content" 属性的 "open-quote" 和 "close-quote" 的值不会产生任何引号。 |
string string string string | 规定要使用的引号。前两个值规定第一级引用嵌套,后两个值规定下一级引号嵌套。 |
inherit | quotes 属性的值从父元素继承。 |
Pomoc Browser
Wszystkie główne przeglądarki obsługują właściwość cytaty, oprócz Internet Explorer i Safari.
Przykłady
Przykłady
Zmień cytaty:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
<script>
function displayResult(){
document.getElementById("q1").style.quotes="'<' '>' '[start]' '[end]'";
}
</script>
</head>
<body>
<q id="q1">这是一个<q>引号元素</q> 在其他的引号元素内。</q>
<br>
<button type="button" onclick="displayResult()">修改引号标记</button>
<p><b>注意:</b> 这个例子在IE和Safari不工作。</p>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
<script>
function displayResult(){
document.getElementById("q1").style.quotes="'<' '>' '[start]' '[end]'";
}
</script>
</head>
<body>
<q id="q1">这是一个<q>引号元素</q> 在其他的引号元素内。</q>
<br>
<button type="button" onclick="displayResult()">修改引号标记</button>
<p><b>注意:</b> 这个例子在IE和Safari不工作。</p>
</body>
</html>
Spróbuj »
styl Przedmioty