案例:jQuery UI案例     状态:可编辑再运行    进入竖版
 运行结果 
AخA
    <input type="radio" id="repeat0" name="repeat" checked="checked"><label for="repeat0">No Repeat</label>
 
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
  #toolbar {
12
    padding: 4px;
13
    display: inline-block;
14
  }
15
  /* support: IE7 */
16
  *+html #toolbar {
17
    display: inline;
18
  }
19
  </style>
20
  <script>
21
  $(function() {
22
    $( "#beginning" ).button({
23
      text: false,
24
      icons: {
25
        primary: "ui-icon-seek-start"
26
      }
27
    });
28
    $( "#rewind" ).button({
29
      text: false,
30
      icons: {
31
        primary: "ui-icon-seek-prev"
32
      }
33
    });
34
    $( "#play" ).button({
35
      text: false,
36
      icons: {
37
        primary: "ui-icon-play"
38
      }
39
    })
40
    .click(function() {
41
      var options;
42
      if ( $( this ).text() === "play" ) {
43
        options = {
44
          label: "pause",
45
          icons: {
46
            primary: "ui-icon-pause"
47
          }
48
        };