このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docsコミュニティーについてもっと知り、仲間になるにはこちらから。
<mover>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年1月.
MathML の<mover> 要素はアクセントかリミットを上に載せるために使われます。構文は次の通りです:<mover> base overscript </mover>訳注:アクセントは例えばドットやハットなどの記号です。リミットとは,定積分の区間の端点などのことです。overscript には定着した訳語がないようです。superscript(上付き)が肩に付く添字であるのに対し,overscript は真上に付く添字です。そのまま「オーバースクリプト」と書くことにします。
In this article
属性
- accent
これが
trueの場合,オーバースクリプトはアクセントであり,本体に近く表示されます。false(既定値)の場合,オーバースクリプトは本体の上に載せるリミットです。訳注:既定値は実際にはもう少し複雑で,オーバースクリプトが<mo>要素の場合,そのaccent属性が既定値となるというルールがあります。詳細は仕様書を参照。また,accent属性の値によって大きさが違って表示される場合もあります。- align
オーバースクリプトの揃え位置。取り得る値は:
left,centerおよびright.- class, id, style
Provided for use withstylesheets.
- href
Used to set a hyperlink to a specified URI.
- mathbackground
The background color. You can use
#rgb,#rrggbbandHTML color names.- mathcolor
The text color. You can use
#rgb,#rrggbbandHTML color names.
例
Sample rendering:
Rendering in your browser:
<math> <mover accent="true"> <mrow> <mi> x </mi> <mo> + </mo> <mi> y </mi> <mo> + </mo> <mi> z </mi> </mrow> <mo> ⏞ <!--TOP CURLY BRACKET--> </mo> </mover></math>仕様書
| Specification |
|---|
| MathML Core> # underscripts-and-overscripts-munder-mover-munderover> |
ブラウザーの互換性
関連情報
<munder>(Underscript)<munderover>(Underscript-overscript pair)