<mspace>

<mspace> MathML 元素用来显示一段空白,空白的大小由它自身的属性设置。

属性

该元素的属性包括全局 MathML 属性 (en-US)以及下列属性:

depth

<length-percentage> 值,表示空白(在基线下方)的深度。

height

<length-percentage> 值,表示空白(在基线上方)的高度。

width

<length-percentage> 值,表示空白的宽度。

备注: 对于 depthheightwidth 属性,一些浏览器可能也接受旧版 MathML 长度值 (en-US)

示例

html
<math display="block">
  <mn>1</mn>
  <mspace depth="40px" height="20px" width="100px"
          style="background: lightblue;"/>
  <mn>2</mn>
</math>

规范

Specification
MathML Core
# space-mspace

浏览器兼容性

BCD tables only load in the browser

参见