tool
UK[tu:l] 美[tul]
n. Utensils, tools; (helpful in doing work or completing something) tools ; a person who is taken advantage of; imprinting machine
vt. use tools to process; imprint; drive around
vi. use tools; drive, ride in a car
Third person singular: tools Plural: tools Present participle: tooling Past tense: tooled Past participle: tooled
tip
##英[tɪp] 美[tɪp] n. Tip; tip; tip vt. Tip; tilt, overturn; tip vi. Tip; tip over; overturnThird person singular: tips Plural: tips Present participle: tipping Past tense: tipped Past participle: tipped
jQueryUI Tooltip method syntax
Function:Hover over the link, or use the tab key to cycle through and focus on each element.
Description: Tooltips can be bound to any element. When your mouse hovers over an element, the title attribute appears in a small box next to the element, just like a native tooltip.
jQueryUI Tooltip method example
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI 工具提示框(Tooltip) - 默认功能</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.9.1.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css"> <script> $(function() { $( document ).tooltip(); }); </script> <style> label { display: inline-block; width: 5em; } </style> </head> <body> <p><a href="#" title="部件的名称">Tooltips</a> 可被绑定到任意的元素上。当您的鼠标悬停在元素上时,title 属性会显示在元素旁边的一个小框中,就像原生的工具提示框一样。</p> <p>但是由于它不是一个原生的工具提示框,所以它可以被定义样式。通过 <a href="http://themeroller.com" title="ThemeRoller:jQuery UI 的主题创建应用程序">ThemeRoller</a> 创建的主题也可以相应地定义工具提示框的样式。</p> <p>工具提示框也可以用于表单元素,来显示每个区域中的一些额外的信息。</p> <p><label for="age">您的年龄:</label><input id="age" title="年龄仅用于统计。"></p> <p>悬停在相应的区域上查看工具提示框。</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance