dir
語法
html
<!-- Moroccan style -->
<math dir="ltr">
<msqrt>
<mi>س</mi>
</msqrt>
<mo>=</mo>
<msup>
<mn>3</mn>
<mi>ب</mi>
</msup>
</math>
<!-- Maghreb/Machrek style -->
<math dir="rtl">
<msqrt>
<mi>س</mi>
</msqrt>
<mo>=</mo>
<msup>
<mn>٣</mn>
<mi>ب</mi>
</msup>
</math>
值
ltr,表示從左到右,用於從左到右呈現數學表示式(例如英語或摩洛哥風格);rtl,表示從右到左,用於從右到左呈現數學表示式(例如馬格里布或馬什裡克風格);
規範
| 規範 |
|---|
| MathML 核心 # dfn-dir |
瀏覽器相容性
BCD 表格僅在啟用了 JavaScript 的瀏覽器中載入。