<msub>
MathML<msub>
元素用来为表达式加下标,语法如下:<msub> base subscript </msub>
。
属性
例子
下述代码表示:
您的浏览器的渲染结果:
<math>
<msub>
<mi>X</mi>
<mn>1</mn>
</msub>
</math>
规范
Specification | Status | Comment |
---|---|---|
MathML 3.0 msub |
Recommendation | Current specification |
MathML 2.0 msub |
Recommendation | Initial specification |
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 未实现 | 1.0 (1.7 or earlier) | 未实现 | 未实现 | 5.1 |
href |
未实现 | 7.0 (7.0) | 未实现 | 未实现 | 未实现 |
mathbackground |
未实现 | 4.0 (2.0) | 未实现 | 未实现 | 5.1 |
mathcolor |
未实现 | 4.0 (2.0) | 未实现 | 未实现 | 5.1 |
subscriptshift |
未实现 | 1.0 (1.7 or earlier) | 未实现 | 未实现 | 未实现 |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 未实现 | 未实现 | 1.0 (1.0) | 未实现 | 未实现 | 未实现 |
href |
未实现 | 未实现 | 7.0 (7.0) | 未实现 | 未实现 | 未实现 |
mathbackground |
未实现 | 未实现 | 4.0 (2.0) | 未实现 | 未实现 | 未实现 |
mathcolor |
未实现 | 未实现 | 4.0 (2.0) | 未实现 | 未实现 | 未实现 |
subscriptshift |
未实现 | 未实现 | 1.0 (1.0) | 未实现 | 未实现 | 未实现 |
关于Gecko的特殊说明
- 从Gecko 26.0 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2)开始,不允许使用<none />作为子元素。The rendering has been made more consistent with equivalent configurations of
<msup>
and<mmultiscripts>
and a bug with an incorrect applicationof the
superscriptshift
attribute has been fixed (see bug 827713 for details).
相关链接
<msup>
(Superscript)<msubsup>
(Subscript-superscript pair)<mmultiscripts>
(Prescripts and tensor indices)