<mspace>

<mspace> MathML 元素用於顯示空白,其大小由其屬性設定。

屬性

此元素的屬性包括 全域性 MathML 屬性 以及以下屬性

depth

一個 <length-percentage> 表示所需深度(基線以下)的空間。

height

一個 <length-percentage> 表示所需高度(基線以上)的空間。

width

一個 <length-percentage> 表示所需寬度(基線以上)的空間。

注意:對於depthheightwidth 屬性,一些瀏覽器也可能接受 舊版 MathML 長度

示例

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

規範

規範
MathML 核心
# space-mspace

瀏覽器相容性

BCD 表格僅在瀏覽器中載入

另請參閱