W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
jQuery Tooltip 插件取代了原生的工具提示框,讓它們可自定義,您只需要調(diào)整它們的內(nèi)容、位置和外觀即可。
該插件目前版本是 1.3,已經(jīng)很長時(shí)間沒有更新,推薦使用 jQuery UI 工具提示框(Tooltip)。
如需了解更多有關(guān) jQuery UI 工具提示框(Tooltip)的細(xì)節(jié),請(qǐng)查看 API 文檔 jQuery UI 工具提示框部件(Tooltip Widget)。
jQuery Tooltip 插件演示。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery UI Tooltip - Default functionality</title>
<link rel="stylesheet" rel="external nofollow" target="_blank" >
<script src="http://code.jquery.com/jquery-1.10.2.js" rel="external nofollow" ></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js" rel="external nofollow" ></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$( document ).tooltip();
});
</script>
<style>
label {
display: inline-block;
width: 5em;
}
</style>
</head>
<body>
<p><a href="#" title="That's what this widget is">Tooltips</a> can be attached to any element. When you hover
the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.</p><p>But as it's not a native tooltip, it can be styled. Any themes built with<a rel="external nofollow" target="_blank" title="ThemeRoller: jQuery UI's theme builder application">ThemeRoller</a>will also style tooltips accordingly.</p><p>Tooltips are also useful for form elements, to show some additional information in the context of each field.</p><p><label for="age">Your age:</label><input id="age" title="We ask for your age only for statistical purposes.">
</p><p>Hover the field to see the tooltip.</p>
</body>
</html>
jQuery EasyUI 教程:jQuery EasyUI 基礎(chǔ)插件 - Tooltip 提示框
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: