diff options
Diffstat (limited to 'files/pt-pt/web/mathml/attribute/values/index.html')
-rw-r--r-- | files/pt-pt/web/mathml/attribute/values/index.html | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/files/pt-pt/web/mathml/attribute/values/index.html b/files/pt-pt/web/mathml/attribute/values/index.html new file mode 100644 index 0000000000..62a23acd8d --- /dev/null +++ b/files/pt-pt/web/mathml/attribute/values/index.html @@ -0,0 +1,153 @@ +--- +title: Valores +slug: Web/MathML/Attribute/Valores +tags: + - Guía + - MathML + - Referência de MathML +translation_of: Web/MathML/Attribute/Values +--- +<div>{{MathMLRef}}</div> + +<h2 id="Comprimentos">Comprimentos</h2> + +<p>Vários elementos de apresentação MathML têm atributos que aceitam valores de comprimento usados para dimensões ou espaçamento. MathML aceita diferentes unidades e constantes para indicar comprimentos.</p> + +<h3 id="Unidades">Unidades</h3> + +<table class="standard-table"> + <thead> + <tr> + <th>Unidade</th> + <th>Descrição</th> + </tr> + </thead> + <tbody> + <tr> + <td><code>em</code></td> + <td>Unidade {{ Cssxref("font-size", "relativa à fonte") }}</td> + </tr> + <tr> + <td><code>ex</code></td> + <td>Unidade {{ Cssxref("font-size", "relativa à fonte") }}. (A altura "x" do elemento, <code>1ex ≈ 0.5em</code> em muitas fontes)</td> + </tr> + <tr> + <td><code>px</code></td> + <td>Pixeis</td> + </tr> + <tr> + <td><code>in</code></td> + <td>Polegadas (1 polegada = 2,54 centímetros)</td> + </tr> + <tr> + <td><code>cm</code></td> + <td>Centímetros</td> + </tr> + <tr> + <td><code>mm</code></td> + <td>Milímetros</td> + </tr> + <tr> + <td><code>pt</code></td> + <td>Pontos (1 ponto = 1/72 polegada)</td> + </tr> + <tr> + <td><code>pc</code></td> + <td>Picas (1 pica = 12 pontos)</td> + </tr> + <tr> + <td><code>%</code></td> + <td>Percentagem do valor padrão.</td> + </tr> + </tbody> +</table> + +<h3 id="Constantes">Constantes</h3> + +<p>{{deprecated_header}}</p> + +<p>Um substituto para as constantes depreciadas abaixo é:</p> + +<pre class="notranslate"><code>veryverythinmathspace => 0.05555555555555555em +verythinmathspace => 0.1111111111111111em +thinmathspace => 0.16666666666666666em +mediummathspace => 0.2222222222222222em +thickmathspace => 0.2777777777777778em +verythickmathspace => 0.3333333333333333em +veryverythickmathspace => 0.3888888888888889em</code></pre> + +<table class="standard-table"> + <thead> + <tr> + <th>Constante</th> + <th>Valor</th> + </tr> + </thead> + <tbody> + <tr> + <td><code>veryverythinmathspace</code></td> + <td>1/18<code>em</code></td> + </tr> + <tr> + <td><code>verythinmathspace</code></td> + <td>2/18<code>em</code></td> + </tr> + <tr> + <td><code>thinmathspace</code></td> + <td>3/18<code>em</code></td> + </tr> + <tr> + <td><code>mediummathspace</code></td> + <td>4/18<code>em</code></td> + </tr> + <tr> + <td><code>thickmathspace</code></td> + <td>5/18<code>em</code></td> + </tr> + <tr> + <td><code>verythickmathspace</code></td> + <td>6/18<code>em</code></td> + </tr> + <tr> + <td><code>veryverythickmathspace</code></td> + <td>7/18<code>em</code></td> + </tr> + </tbody> + <thead> + <tr> + <th colspan="2"><em>Constantes</em> negativas são introduzidas em Gecko 7.0 {{ geckoRelease("7.0") }} ({{ bug(650530) }})</th> + </tr> + </thead> + <tbody> + <tr> + <td><code>negativeveryverythinmathspace</code></td> + <td>-1/18<code>em</code></td> + </tr> + <tr> + <td><code>negativeverythinmathspace</code></td> + <td>-2/18<code>em</code></td> + </tr> + <tr> + <td><code>negativethinmathspace</code></td> + <td>-3/18<code>em</code></td> + </tr> + <tr> + <td><code>negativemediummathspace</code></td> + <td>-4/18<code>em</code></td> + </tr> + <tr> + <td><code>negativethickmathspace</code></td> + <td>-5/18<code>em</code></td> + </tr> + <tr> + <td><code>negativeverythickmathspace</code></td> + <td>-6/18<code>em</code></td> + </tr> + <tr> + <td><code>negativeveryverythickmathspace</code></td> + <td>-7/18<code>em</code></td> + </tr> + </tbody> +</table> + +<p>Nota: <a class="external" href="http://www.w3.org/TR/MathML3/chapter3.html#id.3.3.4.2.1" rel="external" title="http://www.w3.org/TR/MathML3/chapter3.html#id.3.3.4.2.1">Associação através de <em>namespace</em> está depreciado</a> em MathML3 e foi removido em Gecko 15.0 {{ geckoRelease("15.0") }} (<a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=673759" rel="external">bug 673759</a>).</p> |