Override text in a <p> element:
document.getElementById("myP").style.unicodeBidi = "bidi-override";
Try it Yourself »
The unicodeBidi property is used with the direction property to set or return whether the text should be overridden to support multiple languages in the same document.
Property | |||||
---|---|---|---|---|---|
unicodeBidi | Yes | Yes | Yes | Yes | Yes |
Return the unicodeBidi property:
object.style.unicodeBidi
Set the unicodeBidi property:
object.style.unicodeBidi = "normal|embed|bidi-override|initial|inherit"
Value | Description |
---|---|
normal | Does not use an additional level of embedding. This is default |
embed | Creates an additional level of embedding |
bidi-override | Creates an additional level of embedding. Reordering depends on the direction property |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | normal |
---|---|
Return Value: | A String, representing the level of embedding with respect to the bidirectional algorithm |
CSS Version | CSS2 |
Return the unicodeBidi property:
alert(document.getElementById("myP").style.unicodeBidi);
Try it Yourself »
CSS tutorial: CSS Text
CSS reference: unicode-bidi property
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!