案例:jquery Mobile案例     状态:可编辑再运行    进入横版
x
  <a href="#" data-role="button" data-inline="true" data-mini="true">按钮 1</a>
 
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>data-mini 实例</h1>
13
  </div>
14
15
  <div data-role="content">
16
  <p>普通按钮和迷你按钮:</p>
17
  <a href="#" data-role="button">按钮 1</a>
18
  <a href="#" data-role="button" data-mini="true">按钮 2</a>
19
  <br>
20
  
21
  <p>行内按钮:普通和迷你的:</p>
22
  <a href="#" data-role="button" data-inline="true">按钮 1</a>
23
  <a href="#" data-role="button" data-inline="true">按钮 2</a>
24
  <br>

 运行结果 
 北美留学生论坛