<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery UI Tooltip - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></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="这就是Tooltips这个小工具">Tooltips</a> 很是强大</p>
<p>但是
<a href="http://jqueryui.com/themeroller/" title="ThemeRoller2: jQuery UI的主题创建应用">ThemeRoller</a>
也挺厉害</p>
<p>Tooltips 对表单元素很有用,可以再某些区域显示指定内容</p>
<p><label for="age">Your age:</label><input id="age" title="输入年龄只做统计使用"></p>
<p>鼠标悬停去看tooltip的效果.</p>
</body>
</html>