有人知道如何在< select>的选项标签中添加上标 [英] Does anyone know how to add superscripts in the option tag of <select>

查看:611
本文介绍了有人知道如何在< select>的选项标签中添加上标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何在

的选项标签中添加上标。

 < select name = 
< option value => 24< sup> th< / sup>< / option&
< / select>


解决方案

如果您的用户有合适的字体=http://www.fileformat.info/info/unicode/char/1d57/fontsupport.htm =nofollow>这里有列表),您可以使用Unicode上标字符:



 < select name => < option value => 24&#x1D57;&#x02B0;< / option>< / select>  

>


Does anyone know how to add superscripts in the option tag of

<select name=" ">
    <option value=" ">24<sup>th</sup></option>
</select>

解决方案

If your users have the appropriate fonts (here's a list), you can use the Unicode superscript characters:

<select name=" ">
  <option value=" ">24&#x1D57;&#x02B0;</option>
</select>

这篇关于有人知道如何在&lt; select&gt;的选项标签中添加上标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆