quotes

创建于 2024-12-03 / 25
字体: [默认] [大] [更大]

❮ Style 对象

实例

更改引号:

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

定义和用法

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


浏览器支持

属性
quotes Yes Yes Yes Yes Yes

语法

返回 quotes 属性:

object.style.quotes

设置 quotes 属性:

object.style.quotes = "none|string string string string|initial|inherit"

属性值

描述
none 默认。规定 "content" 属性的 "open-quote" 和 "close-quote" 的值不会产生任何引号。
string string string string 规定要使用的引号。前两个值规定第一级引用嵌套,后两个值规定下一级引号嵌套。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit


技术细节

默认值: none 
返回值: 一个字符串,表示嵌入的引号类型
CSS 版本 CSS2

更多实例

实例

返回 quotes 属性:

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

相关页面

CSS 参考手册: quotes 属性


❮ Style Object
0 人点赞过