From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-pt/web/mathml/element/maction/index.html | 124 ++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 files/pt-pt/web/mathml/element/maction/index.html (limited to 'files/pt-pt/web/mathml/element/maction') diff --git a/files/pt-pt/web/mathml/element/maction/index.html b/files/pt-pt/web/mathml/element/maction/index.html new file mode 100644 index 0000000000..b176d8e159 --- /dev/null +++ b/files/pt-pt/web/mathml/element/maction/index.html @@ -0,0 +1,124 @@ +--- +title: +slug: Web/MathML/Element/maction +tags: + - MathML + - 'MathML:Element' + - 'MathML:Enlivening Expressions' + - Referência de MathML +translation_of: Web/MathML/Element/maction +--- +
{{MathMLRef}}
+ +
+

O elemento de MathML <maction> oferece a possibilidade de associar ações a (sub-) expressões. A ação é indicada pelo atributo actiontype, que aceita vários valores. Para indicar que elementos são afetados pela ação, pode usar o atributo selection.

+
+ +

Atributos

+ +
+
actiontype
+
A ação que indica o que acontecerá ao elemento. Os valores possíveis são: +
    +
  • statusline: Se o utilizador carregar ou tiver o cursor sob a expressão, a mensagem é enviada para a status line do navegador. A sintaxe é: <maction actiontype="statusline"> expression message </maction>.
  • +
  • toggle: Quando a sub-expressão é carregada, a expressão alterna com outra expressão selecionada. Cada vez que é carregada o valor de selection aumenta.A sintaxe é: <maction actiontype="toggle" selection="positive-integer" > expression1 expression2 expressionN </maction>.
  • +
  • tooltip: Quando o cursor está sob a expressão, uma tooltip com uma mensagem é feita visível perto da expressão.
    + A sintaxe é: <maction actiontype="tooltip"> expression message </maction>.
  • +
+
+
class, id, style
+
Para uso com stylesheets.
+
href
+
Usado para criar uma hiperligação para um URI.
+
mathbackground
+
A cor de fundo. Pode usar #rgb, #rrggbb e nomes de cores HTML.
+
mathcolor
+
A cor do texto e da linha da fração. Pode usar #rgb, #rrggbb e nomes de cores HTML.
+
selection
+
O elemento que no qual a ação tem efeito. O valor pré-definido é 1, que representa o primeiro elemento do grupo.
+
+ +

Exemplos

+ +

O seguinte exemplo usa o "toggle" actiontype:

+ +
<math>
+
+<maction actiontype="toggle">
+
+  <mfrac>
+    <mn>6</mn>
+    <mn>8</mn>
+  </mfrac>
+
+  <mfrac>
+    <mrow>
+      <mn>3</mn>
+      <mo>&sdot;</mo>
+      <mn>2</mn>
+    </mrow>
+    <mrow>
+      <mn>4</mn>
+      <mo>&sdot;</mo>
+      <mn>2</mn>
+    </mrow>
+  </mfrac>
+
+  <mfrac>
+    <mn>3</mn>
+    <mn>4</mn>
+  </mfrac>
+
+</maction>
+
+</math>
+
+ +

Especificações

+ + + + + + + + + + + + + + + + + + + + + +
EspecificaçãoEstadoComentário
{{ SpecName('MathML3', 'chapter3.html#presm.maction', 'maction') }}{{ Spec2('MathML3') }}Especificação atual
{{ SpecName('MathML2', 'chapter3.html#presm.maction', 'maction') }}{{ Spec2('MathML2') }}Especificação inicial
+ +

Compatibilidade

+ + + + + +

{{Compat("mathml.elements.maction")}}

+ + + +

Notas para Gecko

+ + -- cgit v1.2.3-54-g00ecf