MathML の <msub>
要素は式に下付きを付けるために用います。
構文は <msub> base subscript </msub>
となります。
属性
- class, id, style
- Provided for use with stylesheets.
- href
- Used to set a hyperlink to a specified URI.
- mathbackground
- The background color. You can use
#rgb
,#rrggbb
and HTML color names. - mathcolor
- The text color. You can use
#rgb
,#rrggbb
and HTML color names. - subscriptshift
- 下付き部分を本体のベースラインから下げる最小量を length value として指定します。
例
Sample rendering:
Rendering in your browser:
<math>
<msub>
<mi>X</mi>
<mn>1</mn>
</msub>
</math>
ブラウザ毎の互換性
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Gecko-specific notes
- Starting with Gecko 26.0 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2) it is no longer possible to use
<none />
as a child element. 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 バグ 827713 for details).
仕様
Specification | Status | Comment |
---|---|---|
MathML 3.0 msub の定義 |
勧告 | Current specification |
MathML 2.0 msub の定義 |
勧告 | Initial specification |
See also
<msup>
(Superscript)<msubsup>
(Subscript-superscript pair)<mmultiscripts>
(Prescripts and tensor indices)