<annotation>
<annotation>
MathML 元素包含对 MathML 表达式的文本格式注释,例如 LaTeX。
注意: 注释不应该被浏览器渲染,并且默认是隐藏的。然而,如果 <semantics>
元素的第一个子元素包含错误或缺失,Firefox 和 Safari 会渲染一些注释格式。
属性
该元素的属性包括 全局 MathML 属性 以及以下属性:
示例
html
<math display="block">
<semantics>
<!-- The first child is the MathML expression rendered by default. -->
<mrow>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<mi>y</mi>
</mrow>
<!-- Annotate with LaTeX, a lightweight markup language. -->
<annotation encoding="application/x-tex">x^{2} + y</annotation>
</semantics>
</math>
技术摘要
隐式 ARIA 角色 | None |
---|
规范
规范 |
---|
MathML Core # semantics-and-presentation |
浏览器兼容性
加载中…