如何在HTML符号上添加标题 [英] How to add title on a HTML symbol
本文介绍了如何在HTML符号上添加标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在特定的html符号上添加标题,例如:
$ b $b✯我想指出它并且将star视为工具提示或标题。
我尝试过:
i使用< dfn title =star> ✯< / dfn>
但它使它成斜体。
解决方案
这只是浏览器的默认样式< dfn>
tag。
您可以覆盖默认样式,也可以使用没有默认样式的标记,例如< span>
。
跨度:✯
带内联样式的Dfn:✯
跨度:< span class =code-keyword>< span title = star > ✯< / span >
带内联样式的Dfn:< df n title = star style = font-style:normal; > ✯< span class =code-keyword>< / dfn >
Hi,
I want to add a title on a specific html symbol like:
✯ i want to point over it and see "star" as a tooltip or title.
What I have tried:
i used <dfn title="star"> ✯ </dfn>
but it makes it italic.
解决方案
That's just the browser's default styling for the<dfn>
tag.
You can either override the default styling, or use a tag with no default style, like<span>
.
Span: ✯
Dfn with inline style: ✯
Span: <span title="star">✯</span> Dfn with inline style: <dfn title="star" style="font-style:normal;">✯</dfn>
这篇关于如何在HTML符号上添加标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文