<mspace>
MathML の <mspace>
要素は,空白を作るために使われます。空白のサイズ(訳注:幅だけでなくベースラインからの高さ,深さも)は属性で指定します。
属性
- class, id, style
- Provided for use with stylesheets.
- depth
- ベースラインからの希望の深さ(値と単位については length (en-US) 参照)
- height
- ベースラインからの希望の高さ(値と単位については length (en-US) 参照)
- linebreak
- この空白における改行について。取り得る値は
auto
(規定値),newline,
nobreak,
goodbreak
,badbreak
。MathML 3 以降は改行を制御するのに<mo>
を用いるのが好ましい。 - mathbackground
- The background color. You can use
#rgb
,#rrggbb
and HTML color names. - width
- 希望の幅(値と単位については length (en-US) 参照)
Note that some common attributes like mathcolor
, mathvariant
or dir
have no effect on <mspace>
.
例
<math>
<mspace depth="40px" height="20px" />
<mspace width="100px" />
</math>
ブラウザごとの互換性
BCD tables only load in the browser
Gecko-specific notes
- Indentation attributes are not implemented yet (for Gecko see バグ 534962).
- Support for negative values for the
width
attribute has been implemented in Gecko 23.0 (Firefox 23.0 / Thunderbird 23.0 / SeaMonkey 2.20).
仕様
Specification | Status | Comment |
---|---|---|
MathML 3.0 mspace の定義 |
勧告 | Current specification |
MathML 2.0 mspace の定義 |
勧告 | Initial specification |