html – 如何在链接中上标

html – 如何在链接中上标,第1张

概述.project-link {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: bla
.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 – 如何在链接中上标所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1070065.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存