Style quotes attribute
- Предыдущая страница position
- Следующая страница resize
- Вернуться на один уровень выше Объект Style в HTML DOM
Definition and usage
quotes
Set or return the type of quotes for nested references (embedded quotation).
See also:
CSS Reference Manual:quotes attribute
Instance
Example 1
Change quotes:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Example 2
Return quotes attribute:
alert(document.getElementById("myQ").style.quotes);
Syntax
Return quotes attribute:
object.style.quotes
Set quotes attribute:
object.style.quotes = "none|string string string string|initial|inherit"
Attribute value
Value | Description |
---|---|
none | Specifies that the values of the "open-quote" and "close-quote" of the "content" attribute will not produce any quotes. Default. |
string string string string |
Specifies the quotes to be used. The first two values specify the first-level reference nesting, and the last two values specify the next-level quote nesting. |
initial | Set this attribute to its default value. See also initial. |
inherit | This attribute inherits from its parent element. See also inherit. |
Technical details
Default value: | Нет |
---|---|
Возвратное значение: | Строка, представляющая тип кавычек для eingebetteten цитат. |
Версия CSS: | CSS2 |
Поддержка браузеров
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Поддержка | Поддержка | Поддержка | Поддержка | Поддержка |
- Предыдущая страница position
- Следующая страница resize
- Вернуться на один уровень выше Объект Style в HTML DOM