From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/mathmlelement/index.html | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 files/zh-cn/web/api/mathmlelement/index.html (limited to 'files/zh-cn/web/api/mathmlelement') diff --git a/files/zh-cn/web/api/mathmlelement/index.html b/files/zh-cn/web/api/mathmlelement/index.html new file mode 100644 index 0000000000..1d6c01f1c7 --- /dev/null +++ b/files/zh-cn/web/api/mathmlelement/index.html @@ -0,0 +1,72 @@ +--- +title: MathMLElement +slug: Web/API/MathMLElement +tags: + - API + - MathML + - 元素 + - 参考 + - 接口 +translation_of: Web/API/MathMLElement +--- +
{{APIRef("MathML")}}
+ +

MathMLElement 接口表示任意 MathML 元素。

+ +

属性

+ +

This interface has no properties, but inherits properties from: {{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("Element")}}, {{DOMxRef("ElementCSSInlineStyle")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("HTMLOrForeignElement")}}

+ + + +

方法

+ +

This interface has no methods, but inherits methods from: {{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("Element")}}, {{DOMxRef("ElementCSSInlineStyle")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("HTMLOrForeignElement")}}

+ +

示例

+ +

MathML

+ +
<math xmlns="http://www.w3.org/1998/Math/MathML">
+  <msqrt>
+    <mi>x</mi>
+  </msqrt>
+</math>
+ +

JavaScript

+ +
document.querySelector('msqrt').constructor.name; // MathMLElement
+ +

规范

+ + + + + + + + + + + + + + + + +
规范状态备注
MathMLElement interface
+ +

浏览器兼容性

+ + + +

{{Compat("api.MathMLElement")}}

+ +

参见

+ + -- cgit v1.2.3-54-g00ecf