- 挿入パネル→一般→jquery Mobile→ページ
リスト挿入→リストのオプションすべてチェック
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>02 DWリストのオプションを適用</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css"> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.js"></script> </head> <body> <div data-role="page" id="page"> <div data-role="header"> <h1>ヘッダー</h1> </div> <div data-role="content"> <ul data-role="listview" data-inset="true"> <li><a href="#"> <h3>ページ</h3> <p>Lorem ipsum</p> <span class="ui-li-count">1</span> <p class="ui-li-aside">付加情報</p> </a><a href="#">デフォルト</a></li> <li><a href="#"> <h3>ページ</h3> <p>Lorem ipsum</p> <span class="ui-li-count">1</span> <p class="ui-li-aside">付加情報</p> </a><a href="#">デフォルト</a></li> <li><a href="#"> <h3>ページ</h3> <p>Lorem ipsum</p> <span class="ui-li-count">1</span> <p class="ui-li-aside">付加情報</p> </a><a href="#">デフォルト</a></li> </ul> </div> <div data-role="footer"> <h4>フッター</h4> </div> </div> </body> </html>
縮小可能ブロック
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>03 DW縮小可能ブロック</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css"> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.js"></script> </head> <body> <div data-role="page" id="page"> <div data-role="header"> <h1>ヘッダー</h1> </div> <div data-role="content">コンテンツ <div data-role="collapsible-set"> <div data-role="collapsible"> <h3>ヘッダー</h3> <p>コンテンツ</p> </div> <div data-role="collapsible" data-collapsed="true"> <h3>ヘッダー</h3> <p>コンテンツ</p> </div> <div data-role="collapsible" data-collapsed="true"> <h3>ヘッダー</h3> <p>コンテンツ</p> </div> </div> </div> <div data-role="footer"> <h4>フッター</h4> </div> </div> </body> </html>