如何将工具提示添加到非超链接HTML标记 [英] How to add tooltip to a non hyperlink HTML tag
问题描述
总有没有向非超级链接添加工具提示?
Is there anyways to add tooltips to a non hyper link?
即.我想将鼠标移到文本上时将鼠标悬停在工具提示上我将感谢一个不基于超链接的工具提示的工作示例
ie . I want to have a mouse over tooltip when it goes over a text I would appreciate a working example of tooltip that is not based on a hyperlink
谢谢
推荐答案
如果通过工具提示指的是 title
属性,则可以将其应用于许多不同的HTML元素.例如 span
:
If by tooltip you mean the title
attribute, you can apply that to a lot of different HTML elements. For example span
:
<span title="This is my tooltip">roll over me!</span>
http://jsfiddle.net/Curt/cBHf7/
但是,如果您指的是javascript工具提示,那么这些提示也可以应用于除锚点之外的其他元素:
However if you're referring to javascript tooltips, then these can also be applied to elements other than the anchor:
http://www.1stwebdesigner.com/css/stylish-jquery-tooltip-plugins-webdesign/
这篇关于如何将工具提示添加到非超链接HTML标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!