diff options
Diffstat (limited to 'files/pt-pt/web/mathml/element/mfenced/index.html')
| -rw-r--r-- | files/pt-pt/web/mathml/element/mfenced/index.html | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/files/pt-pt/web/mathml/element/mfenced/index.html b/files/pt-pt/web/mathml/element/mfenced/index.html new file mode 100644 index 0000000000..f10d7643af --- /dev/null +++ b/files/pt-pt/web/mathml/element/mfenced/index.html @@ -0,0 +1,81 @@ +--- +title: <mfenced> +slug: Web/MathML/Element/mfenced +tags: + - MathML + - 'MathML:Element' + - 'MathML:General Layout Schemata' + - Obsoleto + - Referência de MathML +translation_of: Web/MathML/Element/mfenced +--- +<div>{{MathMLRef}}</div> + +<p><span class="seoSummary">O elemento obsoleto <code><mfenced></code> costumava oferecer a possibilidade de adicionar parênteses e separadores personalizados a uma expressão. Foi removido das normas mais recente de MathML e navegadores modernos já não o apoiam.</span> Use os elementos {{MathMLElement("mrow")}} e {{MathMLElement("mo")}}.</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-close"><code>close</code></dt> + <dd>Uma <em>string</em> para o delimitador final. O valor padrão é "<code>)</code>" e espaços em branco são removidos.</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 e da linha de fração. Pode usar <code>#rgb</code>, <code>#rrggbb</code> e <a href="https://wiki.developer.mozilla.org/en-US/docs/CSS/color_value#Color_Keywords">nomes de cores de HTML</a>.</dd> + <dt id="attr-open"><code>open</code></dt> + <dd>Uma <em>string</em> para o delimitador inicial. O valor padrão é "<code>(</code>" e espaços em branco são removidos.</dd> + <dt id="attr-separators"><code>separators</code></dt> + <dd> + <p>Uma sequência de zero ou mais caracteres a ser utilizada para diferentes separadores, opcionalmente divididos por espaço branco, que é ignorado. O valor pré-definido é ",". Ao especificar mais de um carácter, é possível definir separadores diferentes para cada argumento na expressão. Se houver demasiados separadores, todo o excesso é ignorado. Se houver muito poucos separadores na expressão, o último separador especificado é repetido.</p> + </dd> +</dl> + +<h2 id="Exemplos">Exemplos</h2> + +<h3 id="O_último_separador_é_repetido">O último separador é repetido (<code>,</code>)</h3> + +<p>Exemplo: <img alt="{a;b;c,d,e}" src="/files/3193/mfenced01.png"></p> + +<p>Exemplo renderizado no seu navegador: <math> <mfenced close="}" open="{" separators=";;,"> <mi>a</mi> <mi>b</mi> <mi>c</mi> <mi>d</mi> <mi>e</mi> </mfenced> </math></p> + +<pre class="brush: html notranslate"><math> + <mfenced open="{" close="}" separators=";;,"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> +</math> +</pre> + +<h3 id="Todo_o_excesso_é_ignorado">Todo o excesso é ignorado (<code>,</code>)</h3> + +<p>Exemplo: <img alt="[a|b|c|d|e]" src="/files/3195/mfenced02.png"></p> + +<p>Exemplo renderizado no seu navegador: <math> <mfenced close="]" open="[" separators="||||,"> <mi>a</mi> <mi>b</mi> <mi>c</mi> <mi>d</mi> <mi>e</mi> </mfenced> </math></p> + +<pre class="brush: html notranslate"><math> + <mfenced open="[" close="]" separators="||||,"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> +</math> +</pre> + +<h2 id="Especificações">Especificações</h2> + +<p>O elemento <mfenced> já não pertence às <a href="https://github.com/mathml-refresh/mathml/issues/2">normas mais recentes de MathML</a>. Use os elementos {{MathMLElement("mrow")}} e {{MathMLElement("mo")}}, ou para ter compatibilidade veja <a href="https://github.com/mathml-refresh/mathml-polyfills/tree/master/mfenced">mathml-polyfills/mfenced.</a></p> + +<h2 id="Compatibilidade">Compatibilidade</h2> + + + +<p>{{Compat("mathml.elements.mfenced")}}</p> |
