Propriedade de citações de estilo
Exemplo
Alterar aspas:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Definição e uso
A propriedade aspas define ou retorna o tipo de aspas para aspas incorporadas.
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
Sintaxe
Retorne a propriedade das cotações:
object.style.quotes
Defina a propriedade de cotações:
object.style.quotes = "none|string string string string|initial|inherit"
Valores de propriedade
Value | Description |
---|---|
none | Specifies that the open-quote and close-quote values will not produce any quotation marks. This is default |
string string string string | Specifies which quotation marks to use. The first two values specifies the first level of quotation embedding, the next two values specifies the next level of quote embedding, etc |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detalhes técnicos
Valor padrão: | Nenhum |
---|---|
Valor de retorno: | Uma String, representando o tipo de aspas para citações incorporadas |
Versão CSS | CSS2 |
Mais exemplos
Exemplo
Retorne a propriedade das cotações:
alert(document.getElementById("myQ").style.quotes);
Páginas relacionadas
Referência CSS: propriedade quotes
❮ Objeto de estilo