2025年12月10日水曜日

[HTML]ネイティブで分数を表示

MathML 分数と根号 - MathML | MDN
https://developer.mozilla.org/ja/docs/Web/MathML/Tutorials/For_beginners/Fractions_and_roots

今日の衝撃

ネイティブで出来るようになっていたとは...

HTML

<math>
  <mfrac>
    <mtext>child1</mtext>
    <mtext>child2</mtext>
  </mfrac>
</math>

結果

child1 child2

ドキュメントを読んでみないとわかりませんが、凝った事をやるのでなければ MathJax を使う必要は無くなりそうですね

F(uriouz)

欲しいものリスト / 優先度の高いほしいものリスト / ☕を奢る
Donate 寄付 カンパ サポート Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
詳細プロフィールを表示

0 comments:

スパム対策の為コメントをオフにしています。
Disqusは利用出来ます。

注: コメントを投稿できるのは、このブログのメンバーだけです。

...

Recent Posts

 
"The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License."