此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

<munderover>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2023年1月⁩.

<munderover> MathML 元素用于在表达式上方和下方同时附加符号。

它使用以下语法:<munderover> base underscript overscript </munderover>

属性

该元素的属性包括全局 MathML 属性以及以下属性:

accent

<boolean>,表示上标是否应被着重标识(即,绘制得更大并且更接近基本表达式)。

accentunder

<boolean>,表示下标是否应被着重标识(即,绘制得更大并且更接近基本表达式)。

示例

html
<math display="block"> <munderover> <mo>∑</mo> <mrow> <mi>n</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mo>+</mo> <mn>∞</mn> </mrow> </munderover> </math> 

规范

Specification
MathML Core
# underscripts-and-overscripts-munder-mover-munderover

浏览器兼容性

参见