<menclose>

非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!

<menclose> MathML 元素根据 notation 属性指定的符号,在其内部渲染内容。

属性

这个元素的属性包括全局 MathML 属性

notation 非标准

以空格分隔的符号列表,用于应用于子元素。这些符号将分别绘制,好像其他符号不存在一样,因此可能会重叠。可能的值有:

渲染示例 在你的浏览器上的渲染效果 描述
longdiv (default) longdiv a2 + b2 长除法符号
actuarial actuarial a2 + b2 精算符号
box box a2 + b2 方框
roundedbox roundedbox a2 + b2 圆角方框
circle circle a2 + b2 圆圈
left left a2 + b2 内容左边的线条
right right a2 + b2 内容右边的线条
top top a2 + b2 内容上方的线条
bottom bottom a2 + b2 内容下方的线条
updiagonalstrike updiagonalstrike a2 + b2 从左下到右上贯穿内容的斜线
downdiagonalstrike downdiagonalstrike a2 + b2 从左上到右下贯穿内容的斜线
verticalstrike verticalstrike a2 + b2 贯穿内容的竖线
horizontalstrike horizontalstrike a2 + b2 贯穿内容的横线
madruwb madruwb a2 + b2 阿拉伯阶乘符号
updiagonalarrow Arrow pointing up and to the right. a2 + b2 斜箭头
phasorangle Screenshot of the phasorangle notation a2 + b2 相量角度符号

示例

html
<math display="block">
  <menclose notation="circle box">
    <mi>x</mi>
    <mo>+</mo>
    <mi>y</mi>
  </menclose>
</math>

规范

<menclose> 元素没有在任何面向浏览器的规范中定义,但你可以在 MathML 4 中找到描述。

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
menclose
Non-standard
notation
Non-standard
notation="actuarial"
Non-standard
notation="bottom"
Non-standard
notation="box"
Non-standard
notation="circle"
Non-standard
notation="downdiagonalstrike"
Non-standard
notation="horizontalstrike"
Non-standard
notation="left"
Non-standard
notation="longdiv"
Non-standard
notation="madruwb"
Non-standard
notation="phasorangle"
Non-standard
notation="right"
Non-standard
notation="roundedbox"
Non-standard
notation="top"
Non-standard
notation="updiagonalarrow"
Non-standard
notation="updiagonalstrike"
Non-standard
notation="verticalstrike"
Non-standard

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.