Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.33 KB

File metadata and controls

52 lines (36 loc) · 1.33 KB
title slug l10n
<msubsup>
Web/MathML/Element/msubsup
sourceCommit
4d5e2c11f4b8cc32e54d2527d9576ed26ced9458

{{MathMLRef}}

MathML <msubsup> 元素用于为表达式同时附加上标和下标。

使用语法如下:<msubsup> base subscript superscript </msubsup>

属性

该元素的属性包括全局 MathML 属性和以下已弃用的属性:

  • subscriptshift {{deprecated_inline}} {{Non-standard_Inline}}
    • : {{cssxref("length-percentage")}} 值,表示下标基线向下移动的最小距离。
  • superscriptshift {{deprecated_inline}} {{Non-standard_Inline}}
    • : {{cssxref("length-percentage")}} 值,表示上标基线向上移动的最小距离。

Note

对于 subscriptshiftsuperscriptshift 属性,一些浏览器可能也会接受旧版 MathML 长度

示例

<math display="block">
  <msubsup>
    <mo>&#x222B;<!-- 积分符号 --></mo>
    <mn>0</mn>
    <mn>1</mn>
  </msubsup>
</math>

{{EmbedLiveSample('示例')}}

规范

{{Specifications}}

浏览器兼容性

{{Compat}}

参见

  • {{ MathMLElement("msub") }}(上标)
  • {{ MathMLElement("msup") }}(下标)
  • {{ MathMLElement("mmultiscripts") }}(四角标,张量式标记)