HTML CSS Reference/CSS Attributes and Javascript Style Properties/unicode bidi

Материал из Web эксперт
Перейти к: навигация, поиск

"unicode-bidi" Example

    
<html>
<body>
<p style="direction:ltr; unicode-bidi:bidi-override">
English . . . HEBREW TEXT
1 2 3 4 5
</p>
</body>
</html>



"unicode-bidi" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<a>                             <acronym>                     |
|                |<address>                       <b>                           |
|                |<bdo>                           <big>                         |
|                |<blockquote>                    <body>                        |
|                |<button>                        <caption>                     |
|                |<center>                        <cite>                        |
|                |<code>                          <col>                         |
|                |<colgroup>                      currentStyle                  |
|                |<custom>                        <dd>                          |
|                |defaults                        <del>                         |
|                |<dfn>                           <dir>                         |
|                |<div>                           <dl>                          |
|                |<dt>                            <em>                          |
|                |<embed>                         <fieldset>                    |
|                |<font>                          <form>                        |
|                |<hn>                            <i>                           |
|                |<img>                           <input type="button">         |
|                |<input type="checkbox">         <input type="file">           |
|                |<input type="image">            <input type="password">       |
|                |<inputtype="radio">             <input type="reset">          |
|                |<input type="submit">           <input type="text">           |
|                |<ins>                           <kbd>                         |
|                |<label>                         <legend>                      |
|                |<li>                            <listing>                     |
|                |<marquee>                       <menu>                        |
|                |<nobr>                          <object>                      |
|                |<ol>                            <option>                      |
|                |<p>                             <pre>                         |
|                |<q>                             <rt>                          |
|                |<ruby>                          runtimeStyle                  |
|                |<s>                             <samp>                        |
|                |<select>                        <small>                       |
|                |<span>                          <strike>                      |
|                |<strong>                        style                         |
|                |<sub>                           <sup>                         |
|                |<table>                         <tbody>                       |
|                |<td>                            <textarea>                    |
|                |<tfoot>                         <th>                          |
|                |<thead>                         <tr>                          |
|                |<tt>                            <u>                           |
|                |<ul>                            <var>                         |
|                |<xmp>                                                         |
+----------------+--------------------------------------------------------------+



"unicode-bidi" Possible Values

Possible Values
normal            The default; Do not open additional embedding level
embed             Open an additional embedding level
bidi-override     According to the direction property inside the element



"unicode-bidi" Syntax and Note

Note:
How to display text with different reading directions.
left-to-right text (such as European) combining with a right-to-left text 
(such as Hebrew or Arabic) is known as the bidirectional algorithm. 
Syntax:
    
element { unicode-bidi: value }
elementID.style.unicodeBidi = "value"
document.all.elementID.style.unicodeBidi = "value" // IE only