<msubsup>
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.
MathML <msubsup>
元素用于为表达式同时附加上标和下标。
使用语法如下:<msubsup> base subscript superscript </msubsup>
。
属性
该元素的属性包括全局 MathML 属性和以下已弃用的属性:
subscriptshift
已弃用 非标准-
<length-percentage>
值,表示下标基线向下移动的最小距离。 superscriptshift
已弃用 非标准-
<length-percentage>
值,表示上标基线向上移动的最小距离。
备注:
对于 subscriptshift
和 superscriptshift
属性,一些浏览器可能也会接受旧版 MathML 长度。
示例
html
<math display="block">
<msubsup>
<mo>∫<!-- 积分符号 --></mo>
<mn>0</mn>
<mn>1</mn>
</msubsup>
</math>
规范
Specification |
---|
MathML Core # subscripts-and-superscripts-msub-msup-msubsup |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
msubsup | ||||||||||||
subscriptshift | ||||||||||||
superscriptshift |
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.
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.
参见
<msub>
(上标)<msup>
(下标)<mmultiscripts>
(四角标,张量式标记)