語法
html
<math scriptlevel="-1"> <!-- decrease math-depth by 1 -->
<math scriptlevel="+2"> <!-- increase math-depth by 2 -->
<math scriptlevel="0"> <!-- reset math-depth to 0 -->
值
如果 <U> 是一個無符號 整數(即,移除符號字首),則接受的值為:
示例
html
<!-- math-depth defaults to 0 on the <math> root. -->
<math>
<msubsup>
<!-- math-depth and font-size remain unchanged on the base. -->
<mtext>base</mtext>
<!-- math-depth defaults to add(1) within the subscript, so it
is incremented by 1 and the font-size is scaled down once. -->
<mtext>subscript</mtext>
<!-- math-depth defaults to add(1) within the superscript too, but
the scriptlevel attribute tells to increment it by 2 instead,
so the font-size is actually scaled down twice. -->
<mtext scriptlevel="+2">superscript</mtext>
</msubsup>
</math>
規範
| 規範 |
|---|
| MathML Core # dfn-scriptlevel |
瀏覽器相容性
載入中…
另見
- 所有 全域性屬性。
- displaystyle 全域性屬性。
font-sizemath-depthmath-style