目录

style quotes 属性

示例

更改引号:

document.getElementById("myQ").style.quotes = "'\253' '\273'";
亲自试一试 »

描述

quotes 属性设置或返回嵌入引号的引号类型。


浏览器支持

Property
quotes Yes Yes Yes Yes Yes

语法

返回引号属性:

object.style.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


技术细节

默认值: 没有任何
返回值: 一个 String,表示嵌入引号的引号类型
CSS版本 CSS2

更多示例

示例

返回引号属性:

alert(document.getElementById("myQ").style.quotes);
亲自试一试 »

相关页面

CSS 参考:报价属性