<mtr>

Baseline 2023 *
Newly available

Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

* Some parts of this feature may have varying levels of support.

<mtr> MathML 元素表示表格或矩阵中的一行。它只能出现在 <mtable> 元素中,其子元素是表示单元格的 <mtd> 元素。该元素类似于 HTML 中的 <tr> 元素。

属性

该元素的属性包括全局 MathML 属性。一些浏览器还可能支持以下属性:

columnalign 非标准

覆盖由 <mtable> 对此行单元格指定的水平对齐方式。允许使用以空格分隔的多个值,并应用于相应的列(例如 columnalign="left center right")。可能的值为:leftcenterright

rowalign 非标准

覆盖由 <mtable> 对此行单元格指定的垂直对齐方式。可能的值为:axisbaselinebottomcentertop

规范

Specification
MathML Core
# row-in-table-or-matrix-mtr

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
mtr
columnalign
Non-standard
rowalign
Non-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.

参见