<mphantom>

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。

The MathML <mphantom> element is rendered invisibly, but dimensions (such as height, width, and baseline position) are still kept.

Attributes

class, id, style
Provided for use with stylesheets.
mathbackground
The background color. You can use #rgb, #rrggbb and HTML color names.

Examples

Sample rendering: x+  z

Rendering in your browser: x + y + z

<math>

<mrow>
  <mi> x </mi>
  <mo> + </mo> 
  <mphantom>
    <mi> y </mi>
    <mo> + </mo>
  </mphantom>
  <mi> z </mi>
</mrow>

</math>

Specifications

Specification Status Comment
MathML 3.0
The definition of 'mphantom' in that specification.
Recommendation Current specification
MathML 2.0
The definition of 'mphantom' in that specification.
Recommendation Initial specification

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support 1.0 (1.7 or earlier) No support No support 5.1
mathbackground No support 4.0 (2.0) No support No support 5.1
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support 1.0 (1.0) No support No support No support
mathbackground No support No support 4.0 (2.0) No support No support No support

See also

文档标签和贡献者

 此页面的贡献者: fscholz, fred.wang, Sheppy, teoli, jswisher
 最后编辑者: fscholz,