<mspace>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年1月.
<mspace> MathML 元素用来显示一段空白,空白的大小由它自身的属性设置。
属性
该元素的属性包括全局 MathML 属性以及下列属性:
depth-
<length-percentage>值,表示空白(在基线下方)的深度。 height-
<length-percentage>值,表示空白(在基线上方)的高度。 width-
<length-percentage>值,表示空白的宽度。
备注:对于 depth、height、width 属性,一些浏览器可能也接受旧版 MathML 长度值。
示例
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> |