aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/mathml/element/msub/index.html
blob: 3e4f44c00f10d9b7ae483406235f6b954aa40650 (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
---
title: <msub>
slug: Web/MathML/Element/msub
translation_of: Web/MathML/Element/msub
---
<p>{{MathMLRef()}}</p>

<p>MathML の <code>&lt;msub&gt;</code> 要素は式に下付きを付けるために用います。<br>
 構文は <code>&lt;msub&gt; <em>base subscript</em> &lt;/msub&gt;</code> となります。</p>

<h2 id="属性">属性</h2>

<dl>
 <dt id="attr-class-id-style">class, id, style</dt>
 <dd>Provided for use with <a href="/en-US/docs/CSS">stylesheets</a>.</dd>
 <dt id="attr-href">href</dt>
 <dd>Used to set a hyperlink to a specified URI.</dd>
 <dt id="attr-mathbackground">mathbackground</dt>
 <dd>The background color. You can use <code>#rgb</code>, <code>#rrggbb</code> and <a href="/en-US/docs/CSS/color_value#Color_Keywords">HTML color names</a>.</dd>
 <dt id="attr-mathcolor">mathcolor</dt>
 <dd>The text color. You can use <code>#rgb</code>, <code>#rrggbb</code> and <a href="/en-US/docs/CSS/color_value#Color_Keywords">HTML color names</a>.</dd>
 <dt id="attr-subscriptshift">subscriptshift</dt>
 <dd>下付き部分を本体のベースラインから下げる最小量を <a href="/en-US/docs/MathML/Attributes/Values#Lengths">length value</a> として指定します。</dd>
</dl>

<h2 id="例"></h2>

<p>Sample rendering: <img alt="x1" src="/files/3202/msub.png" style="margin-left: 10px; vertical-align: middle;"></p>

<p>Rendering in your browser: <math> <msub> <mi>X</mi> <mn>1</mn> </msub> </math></p>

<pre class="brush: html">&lt;math&gt;

  &lt;msub&gt;
    &lt;mi&gt;X&lt;/mi&gt;
    &lt;mn&gt;1&lt;/mn&gt;
  &lt;/msub&gt;

&lt;/math&gt;
</pre>

<h2 id="ブラウザ毎の互換性">ブラウザ毎の互換性</h2>



<p>{{Compat("mathml.elements.msub")}}</p>

<h3 id="Specifications" name="Specifications">Gecko-specific notes</h3>

<ul>
 <li>Starting with Gecko 26.0 {{geckoRelease("26")}} it is no longer possible to use <code>&lt;none /&gt;</code> as a child element. The rendering has been made more consistent with equivalent configurations of {{MathMLElement("msup")}} and {{MathMLElement("mmultiscripts")}} and a bug with an incorrect application <code>of the </code><code>superscriptshift</code> attribute has been fixed (see {{bug("827713")}} for details).</li>
</ul>

<h2 id="Specifications" name="Specifications">仕様</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{ SpecName('MathML3', 'chapter3.html#presm.msub', 'msub') }}</td>
   <td>{{ Spec2('MathML3') }}</td>
   <td>Current specification</td>
  </tr>
  <tr>
   <td>{{ SpecName('MathML2', 'chapter3.html#presm.msub', 'msub') }}</td>
   <td>{{ Spec2('MathML2') }}</td>
   <td>Initial specification</td>
  </tr>
 </tbody>
</table>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{ MathMLElement("msup") }} (Superscript)</li>
 <li>{{ MathMLElement("msubsup") }} (Subscript-superscript pair)</li>
 <li>{{ MathMLElement("mmultiscripts") }} (Prescripts and tensor indices)</li>
</ul>