属性名 | math-style |
---|---|
値 | normal | compact |
初期値 | normal (※実装は compact ?) |
適用可能要素 | すべての要素 |
継承 | 継承する |
サポート | https://caniuse.com/mdn-css_properties_math-style |
MathML における数式の大きさを指定します。
math-style: compact
を指定した方がコンパクトに表示されます。仕様書ではデフォルトは normal
となっていますが、Chrome や Firefox などの実装では compact
がデフォルトになっているようです。
<math style="math-style:normal;"> <mrow> <munderover> <mo>∑</mo> <mrow> <mi>n</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mo>+</mo> <mn>∞</mn> </mrow> </munderover> </mrow> </math> <math style="math-style:compact;"> <mrow> <munderover> <mo>∑</mo> <mrow> <mi>n</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mo>+</mo> <mn>∞</mn> </mrow> </munderover> </mrow> </math>