案例:jquery Mobile案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<link rel="stylesheet" href="/js/jquery.mobile-1.3.2.min.css">
5
<script src="/js/jquery-1.8.3.min.js"></script>
6
<script src="/js/jquery.mobile-1.3.2.min.js"></script>
7
</head>
8
<body>
9
10
<div data-role="page" id="pageone">
11
  <div data-role="header">
12
  <h1>分组按钮</h1>
13
  </div>
14
15
  <div data-role="content">
16
    <div data-role="controlgroup" data-type="horizontal">
17
    <p>水平分组:</p>
18
    <a href="#" data-role="button">按钮 1</a>
19
    <a href="#" data-role="button">按钮 2</a>
20
    <a href="#" data-role="button">按钮 3</a>
21
    </div><br>
22
    
23
    <div data-role="controlgroup" data-type="vertical">
24
    <p>垂直分组(默认):</p>
25
    <a href="#" data-role="button">按钮 1</a>
26
    <a href="#" data-role="button">按钮 2</a>
27
    <a href="#" data-role="button">按钮 3</a>
28
    </div>
29
  </div>
30
31
  <div data-role="footer">
32
  <h1>页脚文本</h1>
33
  </div>
34
</div> 
35
36
</body>
37
</html>
38