<mspace>
Baseline 2023Newly available
Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
<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 |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
mspace | ||||||||||||
depth | ||||||||||||
height | ||||||||||||
Named spaces (e.g. thinmathspace to mean 3/18em) for width , height and depth attributes | ||||||||||||
width |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.