案例: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
    <p>只有图标没有文本的按钮。</p>
17
    <p><b>注释:</b>把鼠标指针移动到图标上会看到提示文本:</p>
18
    <a href="#link" data-role="button" data-icon="search" data-iconpos="notext">Search</a>
19
  </div>
20
21
  <div data-role="footer">
22
  <h1>页脚文本</h1>
23
  </div>
24
</div> 
25
26
</body>
27
</html>
28