スタイル引用符プロパティ
例
引用符を変更します。
document.getElementById("myQ").style.quotes = "'\253' '\273'";
定義と使用法
quotesプロパティは、埋め込まれた引用符の引用符のタイプを設定または返します。
ブラウザのサポート
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
構文
quotesプロパティを返します。
object.style.quotes
quotesプロパティを設定します。
object.style.quotes = "none|string string string string|initial|inherit"
プロパティ値
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 |
技術的な詳細
デフォルト値: | なし |
---|---|
戻り値: | 埋め込まれた引用符の引用符のタイプを表す文字列 |
CSSバージョン | CSS2 |
その他の例
例
quotesプロパティを返します。
alert(document.getElementById("myQ").style.quotes);
関連ページ
CSSリファレンス:引用符プロパティ
❮スタイルオブジェクト