Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

<mfrac>

この翻訳は不完全です。英語から この記事を翻訳 してください。

MathML の <mfrac> 要素は分数を表示するのに使います。

構文は <mfrac>分子 分母</mfrac> です。

属性

bevelled
分数を表示する方法を指定します。true のとき分数線は斜線になります。つまりこの場合,分子・分母がスラッシュ(/)を挟んで左右に並ぶことになります。既定値の false の場合,分子は分母の上に載ります。
class, id, style
Provided for use with stylesheets.
denomalign
分数の下に分母をどう揃えるかを指定します。取り得る値は leftcenter(既定値)と right です。
href
Used to set a hyperlink to a specified URI.
linethickness
分数の水平線の厚み。既定値は medium で,ほかに thinthick や,それ以外の length values が取り得ます。
mathbackground
The background color. You can use #rgb, #rrggbb and HTML color names.
mathcolor
The text color and also the fraction line color. You can use #rgb, #rrggbb and HTML color names.
numalign
分数の上に分子をどう揃えるかを指定します。取り得る値は leftcenter(既定値)と right です。

Sample rendering: (a/b)/(c/d)

Your browser rendering: a b c d

<math>  
  <mfrac bevelled="true">
     <mfrac>
        <mi> a </mi>
        <mi> b </mi>
     </mfrac>
     <mfrac>
        <mi> c </mi>
        <mi> d </mi>
     </mfrac>
  </mfrac>
</math>

ブラウザ毎の互換性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 未サポート (24 only) 1.0 (1.7 or earlier) 未サポート 9.5 5.1
bevelled 未サポート 1.0 (1.7 or earlier) 未サポート 未サポート 未サポート
href 未サポート WebKit bug 85733 7.0 (7.0) 未サポート 未サポート 未サポート WebKit bug 85733
mathbackground 未サポート (24 only) 4.0 (2.0) 未サポート 未サポート 5.1
mathcolor 未サポート (24 only) 4.0 (2.0) 未サポート 未サポート 5.1
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 未サポート 未サポート 1.0 (1.0) 未サポート 未サポート 未サポート
bevelled 未サポート 未サポート 1.0 (1.0) 未サポート 未サポート 未サポート
href 未サポート 未サポート 7.0 (7.0) 未サポート 未サポート 未サポート
mathbackground 未サポート 未サポート 4.0 (2.0) 未サポート 未サポート 未サポート
mathcolor 未サポート 未サポート 4.0 (2.0) 未サポート 未サポート 未サポート

Gecko-specific notes

  • Starting with Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4) the medium value for the linethickness attribute has been corrected to match the default thickness.

仕様

Specification Status Comment
MathML 3.0
The definition of 'mfrac' in that specification.
勧告 Current specification
MathML 2.0
The definition of 'mfrac' in that specification.
勧告 Initial specification

 

ドキュメントのタグと貢献者

 このページの貢献者: Fajrovulpo
 最終更新者: Fajrovulpo,