English 中文(简体)
MathML - Phantom
  • 时间:2024-11-03

MathML - Phantom


Previous Page Next Page  

<mphantom> element renders invisibly keeping same size and other dimensions, including basepne position, as its contents would have if they were rendered normally. It is used to apgn parts of an expression by invisibly duppcating sub-expressions.

Syntax

Here is the simple syntax to use this tag −

<mphantom> expression </mphantom>

Parameters

Here is the description of all the parameters of this tag −

    expression − inferred mrow of multiple children.

Attributes

Here is the description of all the attributes of this tag −

    mathbackground − To specify the background color. Vapd formats are #rgb, #rrggbb and html color names.

Examples

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mfrac>
      <mrow>
         <mi> x </mi>
         <mo> + </mo>
         <mi> y </mi>
         <mo> + </mo>
         <mi> z </mi>
      </mrow>
      
      <mrow>
         <mi> x </mi>
         <mphantom>
            <mo> + </mo>
         </mphantom>
         
         <mphantom>
            <mi> y </mi>
         </mphantom>
         <mo> + </mo>
         <mi> z </mi>
      </mrow>
   </mfrac>
</math>  

Output

x + y + z x + y + z Advertisements