.project-@R_404_6862@ {Font-family:Arial; display:inline-block;color:#FFF;Font-size:5vw;white-space:nowrap;text-decoration:underline;margin-right: 3%;line-height:120%;}body { background-color: black;}
<a ID="one" href="#modal1">Maru Speaker Design <sup> (1) </sup> </a><
我试图让(1)成为上标.
编辑https://jsfiddle.net/v1jn1nus/
添加了Arial字体的图片.
我只是不明白.它也适用于小提琴……
解决方法 这是垂直对齐:超级;因此,请检查您的样式是否未重置该元素的vertical-align.检查一下:
.project-@R_404_6862@ {Font-family:Arial; display:inline-block;color:#FFF;Font-size:5vw;white-space:nowrap;text-decoration:underline;margin-right: 3%;line-height:120%;}.project-@R_404_6862@ > span { vertical-align:super; }body { background-color: black;}
<a ID="one" href="#modal1">Maru Speaker Design <span> (1) </span> </a><总结
以上是内存溢出为你收集整理的html – 如何在链接中上标全部内容,希望文章能够帮你解决html – 如何在链接中上标所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)