案例:jQuery UI案例     状态:可编辑再运行    进入横版
AخA
<p>但是由于它不是一个原生的工具提示框,所以它可以被定义样式。通过 <a href="//themeroller.com" title="ThemeRoller:jQuery UI 的主题创建应用程序">ThemeRoller</a> 创建的主题也可以相应地定义工具提示框的样式。</p>
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 工具提示框(Tooltip) - 跟踪鼠标</title>
6
  <link rel="stylesheet" href="/css/jqu1.10.4/jquery-ui.min.css">
7
  <script src="/js/jqu/jquery.min1.10.2.js"></script>
8
  <script src="/js/jqu/jquery-ui.min1.10.4.js"></script>
9
  <link rel="stylesheet" href="jqueryui/style.css">
10
  <style>
11
  label {
12
    display: inline-block;
13
    width: 5em;
14
  }
15
  </style>
16
  <script>
17
  $(function() {
18
    $( document ).tooltip({
19
      track: true
20
    });
21
  });
22
  </script>
23
</head>
24
<body>

 运行结果 
 北美留学生论坛