我有一个div标签如下:
<html> <head></head> <body> <div> <label>Name</label> <input type="text"/> </div> </body> </html>现在我想要一个简单的javascript来显示一个工具提示:hover the div。 有人可以帮我吗 工具提示也应具有淡入/淡出效果。
I have a div tag as follows:
<html> <head></head> <body> <div> <label>Name</label> <input type="text"/> </div> </body> </html>Now I want a simple JavaScript for displaying a tooltip on :hover the div. The tooltip should also have a fade in/out effect.
最满意答案
对于基本的工具提示,您需要:
<div title="This is my tooltip">对于一个优雅的JavaScript版本,您可以查看:
http://www.designer-daily.com/jquery-prototype-mootool-tooltips-12632
上述链接为您提供了12个工具提示选项。
For the basic tooltip, you want:
<div title="This is my tooltip">For a fancier javascript version, you can look into:
https://jqueryhouse.com/best-jquery-tooltip-plugins/
The above link gives you 25 options for tooltips.
如何添加一个工具提示到一个div(How to add a tooltip to a div)我有一个div标签如下:
<html> <head></head> <body> <div> <label>Name</label> <input type="text"/> </div> </body> </html>现在我想要一个简单的javascript来显示一个工具提示:hover the div。 有人可以帮我吗 工具提示也应具有淡入/淡出效果。
I have a div tag as follows:
<html> <head></head> <body> <div> <label>Name</label> <input type="text"/> </div> </body> </html>Now I want a simple JavaScript for displaying a tooltip on :hover the div. The tooltip should also have a fade in/out effect.
最满意答案
对于基本的工具提示,您需要:
<div title="This is my tooltip">对于一个优雅的JavaScript版本,您可以查看:
http://www.designer-daily.com/jquery-prototype-mootool-tooltips-12632
上述链接为您提供了12个工具提示选项。
For the basic tooltip, you want:
<div title="This is my tooltip">For a fancier javascript version, you can look into:
https://jqueryhouse.com/best-jquery-tooltip-plugins/
The above link gives you 25 options for tooltips.
发布评论