<mspace>
MathML<mspace>元素用来表示一段空白,空白的大小由它自身的属性决定。
属性
- class, id, style
-
用来供样式表使用。
- depth
-
空白在基线下方的高度 (参阅 length (en-US)).
- height
-
空白在基线上方的高度 (参阅 length (en-US)).
- linebreak
-
Indicates a line-break at the space. Possible values:
auto
(default value),newline
,nobreak
,goodbreak
,badbreak
. Starting with MathML 3, it is preferred to use<mo> (en-US)
to control linebreaking. - mathbackground
-
用来设置背景色,可以使用
#rgb
、#rrggbb
或者 HTML 颜色名。 - width
-
空白的宽度 (参阅 length (en-US)).
注意,一些像mathcolor
、mathvariant
或dir
这种常用的属性在<mspace>
上是无效的。
例子
html
<math>
<mspace depth="40px" height="20px" />
<mspace width="100px" />
</math>
规范
Specification |
---|
MathML Core # space-mspace |
浏览器兼容性
BCD tables only load in the browser
Gecko 说明
- Indentation attributes 暂时没有实现 (for Gecko see Firefox bug 534962).
- 从 Gecko 23.0 开始实现了对
width
属性负值的支持。