CSS - math-shift
概要
属性名 | math-shift |
---|---|
値 | normal | compact |
初期値 | normal |
適用可能要素 | すべての要素 |
継承 | 継承する |
サポート | https://caniuse.com/mdn-css_properties_math-shift |
説明
MathML において累乗などの上付文字の大きさを制御します。
- normal
- 通常通り表示します。
- compact
- コンパクトに表示します。
使用例
math-shift: compact
を指定した方が若干コンパクトに表示されます。
HTML
<math style="font-size:64px;"> <msup style="math-shift:normal;"> <mi>x</mi> <mn>2</mi> </msup> <msup style="math-shift:compact;"> <mi>x</mi> <mn>2</mi> </msup> </math>
表示
リンク
- https://w3c.github.io/mathml-core/#the-math-shift
- https://developer.mozilla.org/ja/docs/Web/CSS/math-shift
- https://caniuse.com/mdn-css_properties_math-shift
Copyright (C) 2025 杜甫々
初版:2025年3月2日、最終更新:2025年3月2日
https://www.tohoho-web.com/css/prop/math-shift.htm