Propiedad unicodeBidi de estilo
Ejemplo
Anular texto en un elemento <p>:
document.getElementById("myP").style.unicodeBidi = "bidi-override";
Definición y uso
La propiedad unicodeBidi se usa con la propiedad direction para establecer o devolver si el texto debe anularse para admitir varios idiomas en el mismo documento.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
unicodeBidi | Yes | Yes | Yes | Yes | Yes |
Sintaxis
Devuelve la propiedad unicodeBidi:
object.style.unicodeBidi
Establezca la propiedad unicodeBidi:
object.style.unicodeBidi = "normal|embed|bidi-override|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | normal |
---|---|
Valor devuelto: | Una cadena, que representa el nivel de incrustación con respecto al algoritmo bidireccional |
Versión CSS | CSS2 |
Más ejemplos
Ejemplo
Devuelve la propiedad unicodeBidi:
alert(document.getElementById("myP").style.unicodeBidi);
páginas relacionadas
Tutorial CSS: Texto CSS
Referencia CSS: propiedad unicode-bidi
❮ Objeto de estilo