blob: cf083f698ef10e93d51afef52e894785ee78495a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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><msubsup></code> 元素用于为表达式同时附加上角标和下角标。</span></p>
<p>它的语法如下:<code><msubsup> <em>base subscript superscript</em> </msubsup></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"><math displaystyle="true">
<msubsup>
<mo> &#x222B;<!-- 积分符号 --> </mo>
<mn> 0 </mn>
<mn> 1 </mn>
</msubsup>
</math>
</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>
|