L'élément MathML <msub>
est utilisé pour attaché un indice à une expression. On utilise la syntaxe suivante: <msub> base indice </msub>
.
Attributes
- class, id, style
- Fournit pour être utilisé avec stylesheets.
- href
- Utilisé pour ajouter un hyperlien vers une URI.
- mathbackground
- La couleur d'arrière plan. Vous pouvez utiliser
#rgb
,#rrggbb
et les noms de couleurs HTML. - mathcolor
- La couleur du texte. Vous pouvez utiliser
#rgb
,#rrggbb
et les noms de couleurs HTML. - subscriptshift
- The minimum space by which to shift the subscript below the baseline of the expression, as a length value.
Example
Image fixe:
Rendu dans votre navigateur:
<math> <msub> <mi>X</mi> <mn>1</mn> </msub> </math>
Spécifications
Specification | Status | Comment |
---|---|---|
MathML 3.0 La définition de 'msub' dans cette spécification. |
Recommendation | Spécification actuelle |
MathML 2.0 La définition de 'msub' dans cette spécification. |
Recommendation | Spéficication initiale. |
Compatibilité des navigateurs
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Ordinateur | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
msub | Chrome Aucun support Non | Edge Aucun support Non | Firefox Support complet 1 | IE Aucun support Non | Opera Aucun support Non | Safari Support complet 6 | WebView Android Aucun support Non | Chrome Android Aucun support Non | Firefox Android Support complet 4 | Opera Android Aucun support Non | Safari iOS Aucun support Non | Samsung Internet Android Aucun support Non |
href | Chrome Aucun support Non | Edge Aucun support Non | Firefox Support complet 7 | IE Aucun support Non | Opera Aucun support Non | Safari Aucun support Non | WebView Android Aucun support Non | Chrome Android Aucun support Non | Firefox Android Support complet 7 | Opera Android Aucun support Non | Safari iOS Aucun support Non | Samsung Internet Android Aucun support Non |
mathbackground | Chrome Aucun support Non | Edge Aucun support Non | Firefox Support complet 4 | IE Aucun support Non | Opera Aucun support Non | Safari Support complet 6 | WebView Android Aucun support Non | Chrome Android Aucun support Non | Firefox Android Support complet 4 | Opera Android Aucun support Non | Safari iOS Aucun support Non | Samsung Internet Android Aucun support Non |
mathcolor | Chrome Aucun support Non | Edge Aucun support Non | Firefox Support complet 4 | IE Aucun support Non | Opera Aucun support Non | Safari Support complet 6 | WebView Android Aucun support Non | Chrome Android Aucun support Non | Firefox Android Support complet 4 | Opera Android Aucun support Non | Safari iOS Aucun support Non | Samsung Internet Android Aucun support Non |
subscriptshift | Chrome Aucun support Non | Edge Aucun support Non | Firefox Support complet 1 | IE Aucun support Non | Opera Aucun support Non | Safari Aucun support Non | WebView Android Aucun support Non | Chrome Android Aucun support Non | Firefox Android Support complet 4 | Opera Android Aucun support Non | Safari iOS Aucun support Non | Samsung Internet Android Aucun support Non |
Légende
- Support complet
- Support complet
- Aucun support
- Aucun support
Notes spécifiques à Gecko
- À partir de Gecko 26.0 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2) il ne sera bientôt plus possible d'utiliser
<none/>
comme un élément enfant. The rendering has been made more consistent with equivalent configurations of<msup>
and<mmultiscripts>
and a bug with an incorrect applicationof the
superscriptshift
attribute has been fixed (see bug 827713 for details).
Voir aussi
<msup>
(Superscript)<msubsup>
(Subscript-superscript pair)<mmultiscripts>
(Prescripts and tensor indices)