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> 可被綁定到任意的元素上。當(dāng)您的鼠標(biāo)懸停在元素上時,title 屬性會顯示在元素旁邊的一個小框中,就像原生的工具提示框一樣。</p> <p>但是由于它不是一個原生的工具提示框,所以它可以被定義樣式。通過 <a href="http://themeroller.com" title="ThemeRoller:jQuery UI 的主題創(chuàng)建應(yīng)用程序">ThemeRoller</a> 創(chuàng)建的主題也可以相應(yīng)地定義工具提示框的樣式。</p> <p>工具提示框也可以用于表單元素,來顯示每個區(qū)域中的一些額外的信息。</p> <p><label for="age">您的年齡:</label><input id="age" title="年齡僅用于統(tǒng)計。"></p> <p>懸停在相應(yīng)的區(qū)域上查看工具提示框。</p> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance