本文概述
MathML下标是使用<msub>标签创建的。用于将下标附加到表达式。它使用以下语法:<msub>基本下标</ msub>。
例如:
写X1
等效的MathML代码:
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block' >
<msub>
<mi>X</mi>
<mn>1</mn>
</msub>
</math>
下标元素的属性
| Index | Attribute | Description |
|---|---|---|
| 1) | 班级, 身份证, 风格 | 提供供样式表使用。 |
| 2) | href | 它用于设置到指定uri的超链接。 |
| 3) | mathbackground | 它指定背景色。你可以使用#rgb, #rrggbb和html颜色名称。 |
| 4) | mathcolor | 它指定文本颜色。你可以使用#rgb, #rrggbb和html颜色名称。 |
| 5) | subscriptshift | 它指定将下标移动到表达式基线以下的最小空间, 作为长度值。 |
支持的浏览器
| Element | Chrome | IE | Firefox(壁虎) | Opera | Safari |
| <msub> | Not Supported | Not Supported | Supported | Not Supported | 仅基本支持 |
srcmini
评论前必须登录!
注册