<msub>
        
        
          
                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月.
<msub> MathML 元素用于为表达式附加下标。
使用语法如下:<msub> base subscript </msub>。
属性
该元素的属性包括全局 MathML 属性和以下已弃用的属性:
subscriptshift已弃用 非标准- 
<length-percentage>值,表示下标基线向下移动的最小距离。 
备注:对于 subscriptshift 属性,一些浏览器可能也会接受旧版 MathML 长度。
示例
html
<math display="block">
  <msub>
    <mi>X</mi>
    <mn>1</mn>
  </msub>
</math>
规范
| Specification | 
|---|
| MathML Core> # subscripts-and-superscripts-msub-msup-msubsup>  | 
            
浏览器兼容性
Loading…
参见
<msup>(上标)<msubsup>(上下标)<mmultiscripts>(四角标,张量式标记)