HTML中上下标的标签是什么

html-css09

HTML中上下标的标签是什么,第1张

HTML中上标、下标使用<sup></sup>标记

我们通常用于「呼吸作用[1]」和幂的指数「an」,如例

 |      <p>Calculate: 8<sup>3</sup> ÷ 8<sup>2</sup></p>

 |      <p>Cellular respiration<sup>[1]</sup> is very important to all living things.</p>

用$('input').length 然后循环一遍给每个input加个 $('input')[i].index=i;这里的index是自己加的属性,遍历完后,你使用$('#a').index 可得到对应的下标