Change quotation marks:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Try it Yourself »
The quotes property sets or returns the type of quotation marks for embedded quotations.
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
Return the quotes property:
object.style.quotes
Set the quotes property:
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 |
Default Value: | none |
---|---|
Return Value: | A String, representing the type of quotation marks for embedded quotations |
CSS Version | CSS2 |
Return the quotes property:
alert(document.getElementById("myQ").style.quotes);
Try it Yourself »
CSS reference: quotes property
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!