MathML attribute reference - MathML 编辑

This is an alphabetical list of MathML attributes. More details for each attribute are available on particular element pages.

Notes:

  • The MathML <mstyle> and <math> elements accept all attributes of all MathML presentation elements.
  • See values for notes on values and units in MathML.
  • The attributes background, color, fontfamily, fontsize, fontstyle, fontweight and xlink:href are deprecated.
  • The XLink attributes on MathML elements: xlink:actuate, xlink:href, xlink:show and xlink:type are deprecated as well.
NameElements accepting attributeDescription
accent<mo>, <mover>, <munderover>A Boolean value specifying whether the operator should be treated as an accent.
accentunder<munder>, <munderover>A Boolean value specifying whether the operator should be treated as an accent.
actiontype<maction>A string value specifying the action happening for this element.
align This deprecated API should no longer be used, but will probably still work.<mtable>
<munder>, <mover>, <munderover>
<mstack>
Specifies different alignments of several elements (see element pages for details).
Unimplemented alignmentscope<mtable>A Boolean value specifying whether table columns should act as alignment scopes or not.
Unimplemented
altimg
altimg-width
altimg-height
altimg-valign
alttext
<math>Visual and textual fall-back options.
bevelled This deprecated API should no longer be used, but will probably still work.<mfrac>Specifies the style how the fraction should be displayed. Deprecated. Use U+2044 (fraction slash) instead.
Unimplemented charalign<mstack>Specifies the horizontal alignment of digits.
close<mfenced>A string for the closing delimiter.
columnalign<mtable>, <mtd>, <mtr>, <mlabeledtr>Specifies the horizontal alignment of table cells.
columnlines<mtable>Specifies table column borders.
columnspacing<mtable>Specifies the space between table columns.
columnspan<mtd>A non-negative integer value that indicates over how many table columns the cell extends.
Unimplemented columnwidth<mtable>Specifies the width of table columns.
Unimplemented crossout<mscarry>Specifies what kind of line is drawn to cross out carries.
Unimplemented decimalpoint<mstyle>If the decimalpoint value is used to specify the alignment, this attribute is specifying the character for the alignment point within <mstack> and <mtable> columns.
denomalign This deprecated API should no longer be used, but will probably still work.<mfrac>The alignment of the denominator under the fraction.
depth<mpadded>Sets or increments the depth. See length.
dir<math>, <mi>, <mo>, <mrow>, <ms>, <mtext>The text direction. Possible values are either ltr (left to right) or rtl (right to left).
display<math>Specifies the rendering mode. The values block and inline are allowed.
displaystyleAll

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.

In MathML 3 this attribute was only valid on <mstyle>, <mtable>, and  <math>.

Unimplemented edge<malignmark>
Unimplemented equalcolumns<mtable>A Boolean value indicating whether to force all columns to have the same total height.
Unimplemented equalrows<mtable>A Boolean value indicating whether to force all rows to have the same total height.
fence<mo>A Boolean value specifying whether the operator is a fence (such as parentheses). There is no visual effect for this attribute.
Unimplemented form<mo>Specifies the role of the operator in an enclosed expression.
frame<mtable>Specifies borders of an entire <mtable>. Possible values are: none (default), solid and dashed.
framespacing<mtable>Specifies additional space added between the table and frame.
Unimplemented groupalign<maligngroup>, <mtable>, <mtd>, <mtr>
height<mglyph>, <mpadded>, <mspace>Specifies the desired height. See lengths for possible values.
hrefAllUsed to set a hyperlink to a specified URI.
idAllSets up a unique identifier associated with the element.
Unimplemented indentalign<mo>, <mspace>
Unimplemented indentalignfirst<mo>, <mspace>
Unimplemented indentalignlast<mo>, <mspace>
Unimplemented indentshift<mo>, <mspace>
Unimplemented indentshiftfirst<mo>, <mspace>
Unimplemented indentshiftlast<mo>, <mspace>
Unimplemented indenttarget<mo>, <mspace>
Unimplemented infixlinebreakstyle<mstyle>Specifies the default linebreakstyle to use for infix operators.
largeop<mo>Specifies whether the operator should be drawn larger than normal.
length<msline>
Unimplemented linebreak<mo>, <mspace>
Unimplemented linebreakmultchar<mo>, <mspace>
Unimplemented linebreakstyle<mo>, <mspace>
Unimplemented lineleading<mo>, <mspace>
linethickness<mfrac>The thickness of the horizontal fraction line.
Unimplemented location<mscarries>
Unimplemented longdivstyle<mlongdiv>Controls the style of the long division layout.
lspace<mo>, <mpadded>The amount of space before the operator (see length for values and units).
lquote<ms>The opening quote character (depends on dir) to enclose the content. The default value is "&quot;".
mathbackgroundAllThe background color. You can use #rgb, #rrggbb and HTML color names.
mathcolorAllThe text color. You can use #rgb, #rrggbb and HTML color names.
mathsize<mi>, <mn>, <mo>, <ms>, <mtext>The size of the content.
mathvariant<mi>, <mn>, <mo>, <ms>, <mtext>The logical class of the identifier, which varies in typography.
maxsize<mo>The maximum size of the operator.
Unimplemented minlabelspacing<mtable>A length value specifying the minimum space between a label and the adjacent cell in the row.
minsize<mo>The minimum size of the operator.
movablelimits<mo>Specifies whether attached under- and overscripts move to sub- and superscript positions.
notation<menclose>A list of notations, separated by white space, to apply to the child elements.
numalign This deprecated API should no longer be used, but will probably still work.<mfrac>The alignment of the numerator over the fraction.
open<mfenced>A string for the opening delimiter.
Unimplemented overflow<math>If an expression is too long to fit in the allowed width, this attribute sets the preferred handling.
Unimplemented position<msgroup>, <msrow>, <mscarries>, <msline>
rowalign<mtable>, <mtd>, <mtr>Specifies the vertical alignment of table cells.
rowlines<mtable>Specifies table row borders.
rowspacing<mtable>Specifies the space between table rows.
rowspan<mtd>A non-negative integer value that indicates on how many rows does the cell extend.
rspace<mo>The amount of space after the operator.
rquote<ms>The closing quote mark (depends on dir) to enclose the content. The default value is "&quot;".
scriptlevel<mstyle>Controls mostly the font-size. The higher the scriptlevel, the smaller the font size.
scriptminsize<mstyle>Specifies a minimum font size allowed due to changes in scriptlevel.
scriptsizemultiplier<mstyle>Specifies the multiplier to be used to adjust font size due to changes in scriptlevel.
selection<maction>The child element which is addressed by the action.
separator<mo>There is no visual effect for this attribute, but it specifies whether the operator is a separator (such as commas).
separators<mfenced>A sequence of zero or more characters to be used for different separators.
Unimplemented shift<msgroup>
Unimplemented side<mtable>Specifies the position where <mlabeledtr> label elements should be placed.
Unimplemented src<mglyph>The location of the image resource.
Unimplemented stackalign<mstack>
stretchy<mo>Specifies whether the operator stretches to the size of the adjacent element.
subscriptshift This deprecated API should no longer be used, but will probably still work.<mmultiscripts>, <msub>, <msubsup>The minimum space by which to shift the subscript below the baseline of the expression.
supscriptshift This deprecated API should no longer be used, but will probably still work.<mmultiscripts>, <msup>, <msubsup>The minimum space by which to shift the superscript above the baseline of the expression.
symmetric<mo>If stretchy is true, this attribute specifies whether the operator should be vertically symmetric around the imaginary math axis (centered fraction line).
voffset<mpadded>Sets the vertical position of the child content.
width<mglyph>, <mpadded>, <mspace>, <mtable>Specifies the desired width. See lengths for possible values.
xmlns<math>Specifies the URI for the MathML namespace (http://www.w3.org/1998/Math/MathML)

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

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

发布评论

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

词条统计

浏览:99 次

字数:37191

最后编辑:6年前

编辑次数:0 次

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