blob: c7584186cfc8c38f3a939e031ab4c573b309aaff (
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
|
---
title: <msub>
slug: Web/MathML/Element/msub
tags:
- MathML
- 'MathML:Element'
- 'MathML:Script and Limit Schemata'
- Referência de MathML
translation_of: Web/MathML/Element/msub
---
<div>{{MathMLRef}}</div>
<p><span class="seoSummary">O elemento de MathML <code><msub></code> para adicionar um <em>subscript</em> a uma expressão.</span></p>
<p>Usa a seguinte sintaxe: <code><msub> <em>base subscript</em> </msub></code>.</p>
<h2 id="Atributos">Atributos</h2>
<dl>
<dt id="attr-class-id-style"><code>class</code>, <code>id</code>, <code>style</code></dt>
<dd>Para uso com <em><a href="/en-US/docs/CSS">stylesheets</a></em>.</dd>
<dt id="attr-href"><code>href</code></dt>
<dd>Usado para criar uma hiperligação para um URI.</dd>
<dt id="attr-mathbackground"><code>mathbackground</code></dt>
<dd>A cor de fundo. Pode usar <code>#rgb</code>, <code>#rrggbb</code> e <a class="external external-icon" href="https://wiki.developer.mozilla.org/en-US/docs/CSS/color_value#Color_Keywords" rel="noopener">nomes de cores de HTML</a>.</dd>
<dt id="attr-mathcolor"><code>mathcolor</code></dt>
<dd>A cor do texto. Pode usar <code>#rgb</code>, <code>#rrggbb</code> e <a class="external external-icon" href="https://wiki.developer.mozilla.org/en-US/docs/CSS/color_value#Color_Keywords" rel="noopener">nomes de cores de HTML</a>.</dd>
<dt id="attr-subscriptshift"><code>subscriptshift</code> {{deprecated_inline}}</dt>
<dd>O espaço mínimo entre o <em>subscript</em> e a linha de base da expressão, como um <a href="https://wiki.developer.mozilla.org/pt-PT/docs/Web/MathML/Attribute/Valores#Comprimentos">valor de comprimento.</a><br>
Este atributo está obsoleto e será removido no futuro.</dd>
</dl>
<h2 id="Exemplos">Exemplos</h2>
<p>Exemplo: <img alt="x1" src="/files/3202/msub.png" style="margin-left: 10px; vertical-align: middle;"></p>
<p>Exemplo renderizado no seu navegador: <math> <msub> <mi>X</mi> <mn>1</mn> </msub> </math></p>
<pre class="brush: html notranslate"><math>
<msub>
<mi>X</mi>
<mn>1</mn>
</msub>
</math>
</pre>
<h2 id="Especificações">Especificações</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificação</th>
<th scope="col">Estado</th>
<th scope="col">Comentário</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ SpecName('MathML3', 'chapter3.html#presm.msub', 'msub') }}</td>
<td>{{ Spec2('MathML3') }}</td>
<td>Especificação atual</td>
</tr>
<tr>
<td>{{ SpecName('MathML2', 'chapter3.html#presm.msub', 'msub') }}</td>
<td>{{ Spec2('MathML2') }}</td>
<td>Especificação inicial</td>
</tr>
</tbody>
</table>
<h2 id="Compatibilidade">Compatibilidade</h2>
<p>{{Compat("mathml.elements.msub")}}</p>
<h2 id="Ver_também">Ver também</h2>
<ul>
<li>{{ MathMLElement("msup") }} (<em>Superscript</em>)</li>
<li>{{ MathMLElement("msubsup") }} (Par de <em>subscript-superscript</em>)</li>
<li>{{ MathMLElement("mmultiscripts") }} (<em>Prescripts</em> e índices tensores)</li>
</ul>
|