<mlabeledtr> - MathML 编辑

The MathML <mlabeledtr> element is used to represent a label in a row either on the left or on the right side (determined using the side attribute on the <mtable> element). Child elements of <mlabeledtr> must be <mtd> elements. The first child is the label whereas all other children are representing row contents and are treated identically to children of <mtr> elements.

Attributes

class, id, style
Provided for use with stylesheets.
columnalign
Overrides the horizontal alignment of cells specified by <mtable> for this row.
Possible values are: left, center and right.
groupalign
href
Used to set a hyperlink to a specified URI.
mathbackground
The background color. You can use #rgb, #rrggbb and HTML color names.
mathcolor
The text color. You can use #rgb, #rrggbb and HTML color names.
rowalign
Overrides the vertical alignment of cells specified by <mtable> for this row.
Possible values are: axis, baseline, bottom, center and top.

Examples

Rendering: sample rendering for mlabeledtr

<math>
  <mtable>

    <mlabeledtr>
      <mtd><mn>1</mn></mtd> <!-- label -->
      <mtd><mi>A</mi></mtd>
      <mtd><mi>B</mi></mtd>
    </mlabeledtr>

    <mtr>
      <mtd><mi>C</mi></mtd>
      <mtd><mi>D</mi></mtd>
      <mtd><mi>E</mi></mtd>
    </mtr>

  </mtable>
</math>

Specifications

SpecificationStatusComment
MathML 3.0
The definition of 'mlabeledtr' in that specification.
RecommendationCurrent specification
MathML 2.0
The definition of 'mlabeledtr' in that specification.
RecommendationInitial specification

Browser compatibility

BCD tables only load in the browser

Gecko-specific notes

Starting with Gecko 9.0 (Firefox 9.0 / Thunderbird 9.0 / SeaMonkey 2.6) labels are hidden by default (mlabeledtr > mtd:first-child {display: none}) and will longer break the table rendering completely (see bug 356870). For the actual implementation of this element see bug 689641.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:150 次

字数:5097

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文