案例:jQuery UI案例     状态:可编辑再运行    进入竖版
 运行结果 
AخA
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 按钮(Button) - 分割按钮</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
    .ui-menu { position: absolute; width: 100px; }
12
  </style>
13
  <script>
14
  $(function() {
15
    $( "#rerun" )
16
      .button()
17
      .click(function() {
18
        alert( "Running the last action" );
19
      })
20
      .next()
21
        .button({
22
          text: false,
23
          icons: {
24
            primary: "ui-icon-triangle-1-s"
25
          }
26
        })
27
        .click(function() {
28
          var menu = $( this ).parent().next().show().position({
29
            my: "left top",
30
            at: "left bottom",
31
            of: this
32
          });
33
          $( document ).one( "click", function() {
34
            menu.hide();
35
          });
36
          return false;
37
        })
38
        .parent()
39
          .buttonset()
40
          .next()
41
            .hide()
42
            .menu();
43
  });
44
  </script>
45
</head>
46
<body>
47
 
48
<div>