--- title: MathML attribute reference slug: Web/MathML/Attribute translation_of: Web/MathML/Attribute ---

此页面是MathML属性的字母表。 每个属性的更多详细信息请看这里element pages

注意:

名(Name) 元素接受的属性(Elements accepting attribute) 描述(Description)
accent {{ MathMLElement("mo") }}, {{ MathMLElement("mover") }}, {{ MathMLElement("munderover") }}

布尔类型的值,指明操作符是否应该被视为accent。

原文:A Boolean value specifying whether the operator should be treated as an accent.

accentunder {{ MathMLElement("munder") }}, {{ MathMLElement("munderover") }}

布尔类型的值,指明操作符是否应该被视为accent。

原文:A Boolean value specifying whether the operator should be treated as an accent.

actiontype {{ MathMLElement("maction") }} 字符串类型的值,指明元素发生的操作。
align {{ MathMLElement("mtable") }}
{{ MathMLElement("munder") }}, {{ MathMLElement("mover") }}, {{ MathMLElement("munderover") }}
{{ MathMLElement("mstack") }}
Specifies different alignments of several elements (see element pages for details).
{{ unimplemented_inline() }} alignmentscope {{ MathMLElement("mtable") }} A Boolean value specifying whether table columns should act as alignment scopes or not.
{{ unimplemented_inline() }}
altimg
altimg-width
altimg-height
altimg-valign
alttext
{{ MathMLElement("math") }} Visual and textual fall-back options.
bevelled {{ MathMLElement("mfrac") }} Specifies the style how the fraction should be displayed.
{{ unimplemented_inline() }} charalign {{ MathMLElement("mstack") }} Specifies the horizontal alignment of digits.
close {{ MathMLElement("mfenced") }} A string for the closing delimiter.
columnalign {{ MathMLElement("mtable") }}, {{ MathMLElement("mtd") }}, {{ MathMLElement("mtr") }}, {{ MathMLElement("mlabeledtr") }} Specifies the horizontal alignment of table cells.
columnlines {{ MathMLElement("mtable") }} Specifies table column borders.
{{ unimplemented_inline() }} columnspacing {{ MathMLElement("mtable") }} Specifies the space between table columns.
columnspan {{ MathMLElement("mtd") }} A non-negative integer value that indicates on how many table columns does the cell extend.
{{ unimplemented_inline() }} columnwidth {{ MathMLElement("mtable") }} Specifies the width of table columns.
{{ unimplemented_inline() }} crossout {{ MathMLElement("mscarry") }} Specifies what kind of line is drawn to cross out carries.
{{ unimplemented_inline() }} decimalpoint {{ MathMLElement("mstyle") }} If the decimalpoint value is used to specify the alignment, this attribute is specifying the character for the alignment point within {{ MathMLElement("mstack") }} and {{ MathMLElement("mtable") }} columns.
denomalign {{ MathMLElement("mfrac") }} The alignment of the denominator under the fraction.
depth {{ MathMLElement("mpadded") }} Sets or increments the depth. See length.
dir {{ MathMLElement("math") }}, {{ MathMLElement("mi") }}, {{ MathMLElement("mo") }}, {{ MathMLElement("mrow") }}, {{ MathMLElement("ms") }}, {{ MathMLElement("mtext") }} The text direction. Possible values are either ltr (left to right) or rtl (right to left).
display {{ MathMLElement("math") }} Specifies the rendering mode. The values block and inline are allowed.
displaystyle {{ MathMLElement("mstyle") }}, {{ MathMLElement("mtable") }} A Boolean value specifying whether more vertical space is used for displayed equations or, if set to false, a more compact layout is used to display formulas.
{{ unimplemented_inline() }} edge {{ MathMLElement("malignmark") }}  
{{ unimplemented_inline() }} equalcolumns {{ MathMLElement("mtable") }} A Boolean value indicating whether to force all columns to have the same total height.
{{ unimplemented_inline() }} equalrows {{ MathMLElement("mtable") }} A Boolean value indicating whether to force all rows to have the same total height.
fence {{ MathMLElement("mo") }} A Boolean value specifying whether the operator is a fence (such as parentheses). There is no visual effect for this attribute.
{{ unimplemented_inline() }} form {{ MathMLElement("mo") }} Specifies the role of the operator in an enclosed expression.
frame {{ MathMLElement("mtable") }} Specifies borders of an entire {{ MathMLElement("mtable") }}. Possible values are: none (default), solid and dashed.
{{ unimplemented_inline() }} framespacing {{ MathMLElement("mtable") }} Specifies additional space added between the table and frame.
{{ unimplemented_inline() }} groupalign {{ MathMLElement("maligngroup") }}, {{ MathMLElement("mtable") }}, {{ MathMLElement("mtd") }}, {{ MathMLElement("mtr") }}  
height {{ MathMLElement("mglyph") }}, {{ MathMLElement("mpadded") }}, {{ MathMLElement("mspace") }} Specifies the desired height. See lengths for possible values.
href All Used to set a hyperlink to a specified URI.
id All Sets up a unique identifier associated with the element.
{{ unimplemented_inline() }} indentalign {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} indentalignfirst {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} indentalignlast {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} indentshift {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} indentshiftfirst {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} indentshiftlast {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} indenttarget {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} infixlinebreakstyle {{ MathMLElement("mstyle") }} Specifies the default linebreakstyle to use for infix operators.
largeop {{ MathMLElement("mo") }} Specifies whether the operator should be drawn larger than normal.
length {{ MathMLElement("msline") }}  
{{ unimplemented_inline() }} linebreak {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} linebreakmultchar {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} linebreakstyle {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
{{ unimplemented_inline() }} lineleading {{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}  
linethickness {{ MathMLElement("mfrac") }} The thickness of the horizontal fraction line.
{{ unimplemented_inline() }} location {{ MathMLElement("mscarries") }}  
{{ unimplemented_inline() }} longdivstyle {{ MathMLElement("mlongdiv") }} Controls the style of the long division layout.
lspace {{ MathMLElement("mo") }}, {{ MathMLElement("mpadded") }} The amount of space before the operator (see length for values and units).
lquote {{ MathMLElement("ms") }} The opening quote character (depends on dir) to enclose the content. The default value is """.
mathbackground All The background color. You can use #rgb, #rrggbb and HTML color names.
mathcolor All The text color. You can use #rgb, #rrggbb and HTML color names.
mathsize {{ MathMLElement("mi") }}, {{ MathMLElement("mn") }}, {{ MathMLElement("mo") }}, {{ MathMLElement("ms") }}, {{ MathMLElement("mtext") }} The size of the content. Starting with Gecko 20.0 {{geckoRelease("20")}} unitless values are allowed and are interpreted as N times of the default size.
mathvariant {{ MathMLElement("mi") }}, {{ MathMLElement("mn") }}, {{ MathMLElement("mo") }}, {{ MathMLElement("ms") }}, {{ MathMLElement("mtext") }} The logical class of the identifier, which varies in typography.
maxsize {{ MathMLElement("mo") }} The maximum size of the operator.
{{ unimplemented_inline() }} minlabelspacing {{ MathMLElement("mtable") }} A length value specifing the minimum space between a label and the adjacent cell in the row.
minsize {{ MathMLElement("mo") }} The minimum size of the operator.
movablelimits {{ MathMLElement("mo") }} Specifies whether attached under- and overscripts move to sub- and superscript positions.
notation {{ MathMLElement("menclose") }} A list of notations, separated by white space, to apply to the child elements.
numalign {{ MathMLElement("mfrac") }} The alignment of the numerator over the fraction.
open {{ MathMLElement("mfenced") }} A string for the opening delimiter.
{{ unimplemented_inline() }} overflow {{ MathMLElement("math") }} If an expression is too long to fit in the allowed width, this attribute sets the preferred handling.
{{ unimplemented_inline() }} position {{ MathMLElement("msgroup") }}, {{ MathMLElement("msrow") }}, {{ MathMLElement("mscarries") }}, {{ MathMLElement("msline") }}  
rowalign {{ MathMLElement("mtable") }}, {{ MathMLElement("mtd") }}, {{ MathMLElement("mtr") }} Specifies the vertical alignment of table cells.
rowlines {{ MathMLElement("mtable") }} Specifies table row borders.
rowspacing {{ MathMLElement("mtable") }} Specifies the space between table rows.
rowspan {{ MathMLElement("mtd") }} A non-negative integer value that indicates on how many rows does the cell extend.
rspace {{ MathMLElement("mo") }} The amount of space after the operator.
rquote {{ MathMLElement("ms") }} The closing quote mark (depends on dir) to enclose the content. The default value is """.
scriptlevel {{ MathMLElement("mstyle") }} Controls mostly the font-size. The higher the scriptlevel, the smaller the font size.
scriptminsize {{ MathMLElement("mstyle") }} Specifies a minimum font size allowed due to changes in scriptlevel.
Starting with Gecko 20.0 {{geckoRelease("20")}} unitless values and percent values are allowed and interpreted as multiple of "8pt".
scriptsizemultiplier {{ MathMLElement("mstyle") }} Specifies the multiplier to be used to adjust font size due to changes in scriptlevel.
selection {{ MathMLElement("maction") }} The child element which is addressed by the action.
separator {{ MathMLElement("mo") }} There is no visual effect for this attribute, but it specifies whether the operator is a separator (such as commas).
separators {{ MathMLElement("mfenced") }} A sequence of zero or more characters to be used for different separators.
{{ unimplemented_inline() }} shift {{ MathMLElement("msgroup") }}  
{{ unimplemented_inline() }} side {{ MathMLElement("mtable") }} Specifies the position where {{ MathMLElement("mlabeledtr") }} label elements should be placed.
{{ unimplemented_inline() }} src {{ MathMLElement("mglyph") }} The location of the image resource.
{{ unimplemented_inline() }} stackalign {{ MathMLElement("mstack") }}  
stretchy {{ MathMLElement("mo") }} Specifies whether the operator stretches to the size of the adjacent element.
subscriptshift {{ MathMLElement("mmultiscripts") }}, {{ MathMLElement("msub") }}, {{ MathMLElement("msubsup") }} The minimum space by which to shift the subscript below the baseline of the expression.
supscriptshift {{ MathMLElement("mmultiscripts") }}, {{ MathMLElement("msup") }}, {{ MathMLElement("msubsup") }} The minimum space by which to shift the superscript above the baseline of the expression.
symmetric {{ MathMLElement("mo") }} If stretchy is true, this attribute specifies whether the operator should be vertically symmetric around the imaginary math axis (centered fraction line).
voffset {{ MathMLElement("mpadded") }} Sets the vertical position of the child content.
width {{ MathMLElement("mglyph") }}, {{ MathMLElement("mpadded") }}, {{ MathMLElement("mspace") }}, {{ MathMLElement("mtable") }} Specifies the desired width. See lengths for possible values.
xmlns {{ MathMLElement("math") }} Specifies the URI for the MathML namespace (http://www.w3.org/1998/Math/MathML)