<menclose>

可用性有限

此特性不是基线特性,因为它在一些最广泛使用的浏览器中不起作用。

非标准:此特性未标准化。我们不建议在生产环境中使用非标准特性,因为它们浏览器支持有限,并且可能会更改或被移除。但是,在没有标准选项的特定情况下,它们可以是合适的替代方案。

<menclose> MathML 元素在其 notation 属性指定的封闭符号内渲染其内容。

属性

此元素的属性包括 全局 MathML 属性

notation 非标准

要应用于子元素的符号列表,用空格分隔。每个符号的绘制方式假定其他符号不存在,因此可能会重叠。可能的值包括:

示例渲染 在您的浏览器中渲染 描述
longdiv(默认) Longdiv sample rendering. a2+b2 长除法符号
actuarial Actuarial sample rendering. a2+b2 精算符号
box Box sample rendering. a2+b2 box
roundedbox Roundedbox sample rendering. a2+b2 圆角框
circle Circle sample rendering. a2+b2 circle
left Left sample rendering. a2+b2 内容左侧的线
right Right sample rendering. a2+b2 内容右侧的线
top Top sample rendering. a2+b2 内容上方的线
bottom Bottom sample rendering. a2+b2 内容下方的线
updiagonalstrike Updiagonalstrike sample rendering. a2+b2 从左下到右上的内容删除线
downdiagonalstrike Downdiagonalstrike sample rendering. a2+b2 从左上到右下的内容删除线
verticalstrike Verticalstrike sample rendering. a2+b2 垂直删除线
horizontalstrike Horizontalstrike sample rendering. a2+b2 水平删除线
madruwb Madruwb sample rendering. a2+b2 阿拉伯阶乘符号
updiagonalarrow Madruwb sample rendering. a2+b2 对角箭头
phasorangle Phasorangle sample rendering. a2+b2 相量角

示例

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

示例渲染

Circle and box values applied at the same time.

在您的浏览器中渲染

技术摘要

隐式 ARIA 角色 None

规范

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

浏览器兼容性