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.

MathML 元素表示表格或矩阵中的单元格。它只能出现在 元素中。该元素类似于 HTML 中的 元素。

属性

该元素的属性包括全局 MathML 属性,以及以下属性:

columnspan

一个非负整数值,表示单元格横跨的列数。

rowspan

一个非负整数值,表示单元格横跨的行数。

某些浏览器还可能支持以下属性:

columnalign 非标准

指定此单元格的水平对齐方式,并覆盖由 指定的值。 可能的值包括:leftcenterright

rowalign 非标准

指定此单元格的垂直对齐方式,并覆盖由 指定的值。 可能的值包括:axisbaselinebottomcentertop

示例

使用 mtable、mrow、mtr 和 mtd 创建矩阵

html

  
    A
    2
  
  =
  
    (
    
      
        1
        2
        3
      
      
        4
        5
        6
      
      
        7
        8
        9
      
    
    )
  

规范

Specification
MathML Core
# entry-in-table-or-matrix-mtd

浏览器兼容性

参见