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/mathml/element/msub/index.html | 197 +++++++++++++++++++++++++ 1 file changed, 197 insertions(+) create mode 100644 files/zh-cn/web/mathml/element/msub/index.html (limited to 'files/zh-cn/web/mathml/element/msub') diff --git a/files/zh-cn/web/mathml/element/msub/index.html b/files/zh-cn/web/mathml/element/msub/index.html new file mode 100644 index 0000000000..8acea4f5bb --- /dev/null +++ b/files/zh-cn/web/mathml/element/msub/index.html @@ -0,0 +1,197 @@ +--- +title: +slug: Web/MathML/Element/msub +translation_of: Web/MathML/Element/msub +--- +
{{MathMLRef}}
+ +

MathML<msub>元素用来为表达式加下标,语法如下:<msub> base subscript </msub>

+ +

属性

+ +
+
class, id, style
+
样式表使用。
+
href
+
用来设置标签点击后跳转的链接。
+
mathbackground
+
用来设置标签的背景色,可以使用#rgb#rrggbb或者HTML颜色名
+
mathcolor
+
用来设置标签文字的颜色,同样可以使用#rgb#rrggbb或者HTML颜色名
+
subscriptshift
+
用来设置下标相对于表达式的基线的最小距离,它是一个长度值
+
+ +

例子

+ +

下述代码表示:x1

+ +

您的浏览器的渲染结果:  X 1

+ +
<math>
+
+  <msub>
+    <mi>X</mi>
+    <mn>1</mn>
+  </msub>
+
+</math>
+
+ +

规范

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{ SpecName('MathML3', 'chapter3.html#presm.msub', 'msub') }}{{ Spec2('MathML3') }}Current specification
{{ SpecName('MathML2', 'chapter3.html#presm.msub', 'msub') }}{{ Spec2('MathML2') }}Initial specification
+ +

浏览器兼容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatNo}}{{ CompatGeckoDesktop("1.0") }}{{ CompatNo() }}{{CompatNo}}5.1
href{{CompatNo}}{{ CompatGeckoDesktop("7.0") }}{{ CompatNo() }}{{CompatNo}}{{CompatNo}}
mathbackground{{CompatNo}}{{ CompatGeckoDesktop("2.0") }}{{ CompatNo() }}{{CompatNo}}5.1
mathcolor{{CompatNo}}{{ CompatGeckoDesktop("2.0") }}{{ CompatNo() }}{{CompatNo}}5.1
subscriptshift{{CompatNo}}{{ CompatGeckoDesktop("1.0") }}{{ CompatNo() }}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("1.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
href{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("7.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
mathbackground{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
mathcolor{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
subscriptshift{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("1.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
+
+ +

关于Gecko的特殊说明

+ + + +

相关链接

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