Html 当我将鼠标悬停在链接上时显示气泡帮助
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6074045/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Make bubble help appear when I hover over a link
提问by Marilou S
I have seen some web sites where bubble help appears when I hover over a link.
我看过一些网站,当我将鼠标悬停在链接上时会出现气泡帮助。
Can anyone tell me how this is done? I would love to do this for my site if it would not add too much to the bandwidth needed.
谁能告诉我这是怎么做到的?如果不会增加太多所需的带宽,我很乐意为我的网站执行此操作。
回答by Rob
use the Title attribute in the href tag
在 href 标签中使用 Title 属性
eg
例如
<a href="http://www.website.com" title="Website name">Website Link</a>
a Tool tip with the title contents will pop up
将弹出带有标题内容的工具提示
回答by Ryan
Take a look at tooltips, for example: 30 jQuery tooltips.
看看工具提示,例如:30 jQuery tooltips。