aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/mathml/element/msubsup/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/mathml/element/msubsup/index.html')
-rw-r--r--files/zh-cn/web/mathml/element/msubsup/index.html87
1 files changed, 87 insertions, 0 deletions
diff --git a/files/zh-cn/web/mathml/element/msubsup/index.html b/files/zh-cn/web/mathml/element/msubsup/index.html
new file mode 100644
index 0000000000..cf083f698e
--- /dev/null
+++ b/files/zh-cn/web/mathml/element/msubsup/index.html
@@ -0,0 +1,87 @@
+---
+title: <msubsup>
+slug: Web/MathML/Element/msubsup
+tags:
+ - MathML
+ - MathML 参考
+translation_of: Web/MathML/Element/msubsup
+---
+<div>{{MathMLRef}}</div>
+
+<p><span class="seoSummary">MathML <code>&lt;msubsup&gt;</code> 元素用于为表达式同时附加上角标和下角标。</span></p>
+
+<p>它的语法如下:<code>&lt;msubsup&gt; <em>base subscript superscript</em> &lt;/msubsup&gt;</code>.</p>
+
+<h2 id="属性">属性</h2>
+
+<dl>
+ <dt id="attr-class-id-style"><code>class</code>、<code>id</code>、<code>style</code></dt>
+ <dd>供<a href="/zh-CN/docs/CSS">样式</a>使用。</dd>
+ <dt id="attr-href"><code>href</code></dt>
+ <dd>Used to set a hyperlink to a specified URI.</dd>
+ <dt id="attr-mathbackground"><code>mathbackground</code></dt>
+ <dd>背景颜色。支持 <code>#rgb</code>、<code>#rrggbb</code> 和 <a href="/zh-CN/docs/CSS/color_value#Color_Keywords">HTML 颜色名称</a>。</dd>
+ <dt id="attr-mathcolor"><code>mathcolor</code></dt>
+ <dd>文本颜色。支持 <code>#rgb</code>、<code>#rrggbb</code> 和 <a href="/zh-CN/docs/CSS/color_value#Color_Keywords">HTML 颜色名称</a>。</dd>
+ <dt id="attr-subscriptshift"><code>subscriptshift</code> {{deprecated_inline}}</dt>
+ <dd>The minimum space by which to shift the subscript below the baseline of the expression, as a <a href="/en-US/docs/MathML/Attributes/Values#Lengths">length value.</a><br>
+ This attribute is deprecated and will be removed in the future.</dd>
+ <dt id="attr-superscriptshift"><code>superscriptshift</code> {{deprecated_inline}}</dt>
+ <dd>The minimum space by which to shift the superscript above the baseline of the expression, as a <a href="/en-US/docs/MathML/Attributes/Values#Lengths">length value.</a><br>
+ This attribute is deprecated and will be removed in the future.</dd>
+</dl>
+
+<h2 id="示例">示例</h2>
+
+<p>示例渲染结果:<img alt="x1" src="/files/3204/msubsup.png" style="margin-left: 10px; vertical-align: middle;"></p>
+
+<p>当前浏览器中的渲染结果:<math displaystyle="true"> <msubsup><mo>∫</mo> <mn> 0 </mn> <mn> 1 </mn> </msubsup> </math></p>
+
+<pre class="brush: html">&lt;math displaystyle="true"&gt;
+
+  &lt;msubsup&gt;
+ &lt;mo&gt; &amp;#x222B;&lt;!-- 积分符号 --&gt; &lt;/mo&gt;
+ &lt;mn&gt; 0 &lt;/mn&gt;
+ &lt;mn&gt; 1 &lt;/mn&gt;
+ &lt;/msubsup&gt;
+
+&lt;/math&gt;
+</pre>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">状态</th>
+ <th scope="col">备注</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{ SpecName('MathML3', 'chapter3.html#presm.msubsup', 'msubsup') }}</td>
+ <td>{{ Spec2('MathML3') }}</td>
+ <td>Current specification</td>
+ </tr>
+ <tr>
+ <td>{{ SpecName('MathML2', 'chapter3.html#presm.msubsup', 'msubsup') }}</td>
+ <td>{{ Spec2('MathML2') }}</td>
+ <td>Initial specification</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("mathml.elements.msubsup")}}</p>
+
+<h2 id="参见">参见</h2>
+
+<ul>
+ <li>{{ MathMLElement("msub") }}(上标)</li>
+ <li>{{ MathMLElement("msup") }}(下标)</li>
+ <li>{{ MathMLElement("mmultiscripts") }}(Prescript 和 tensor indice)</li>
+</ul>