<mn>

Baseline 2023
Newly available

Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

<mn> MathML 元素表示一个数字字面量,通常是一个可能包含分隔符(点号或逗号)的数字序列。然而,也允许在其中包含任意文本,该文本实际上是一个数字量,例如“eleven”。

属性

该元素接受全局 MathML 属性

示例

html
<math display="block">
  <mn>0</mn>
</math>

<math display="block">
  <mn>1.337</mn>
</math>

<math display="block">
  <mn>twelve</mn>
</math>

<math display="block">
  <mn>XVI</mn>
</math>

<math display="block">
  <mn>2e10</mn>
</math>

规范

Specification
MathML Core
# number-mn

浏览器兼容性

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
mn

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support