实例 jQuery Mobile button 按钮

x
 
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="https://libs.baidu.com/jquerymobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
</head>
<body>
<div data-role="page" id="pageone">
  <div data-role="header">
  <h1>按钮</h1>
  </div>
  <div data-role="content">
  <p>欢迎!</p>
  <a href="#pagetwo" data-role="button">转到页面二</a>
  </div>
  <div data-role="footer">
  <h1>页脚文本</h1>
  </div>
</div> 
<div data-role="page" id="pagetwo">
  <div data-role="header">
  <h1>按钮</h1>
  </div>
  <div data-role="content">
  <p>再见!</p>
  <a href="#pageone" data-role="button">转到页面一</a>
  </div>
  <div data-role="footer">
  <h1>页脚文本</h1>
  </div>
</div> 
</body>
</html>
                    

输出结果