<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.css"> <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.js"></script> </head> <body> <div data-role="page" id="pageone"> <div data-role="header"> <h1>此处是页面标题</h1> </div> <div data-role="content"> <div data-role="collapsible" data-theme="b" data-content-theme="e"> <h1>点击我 - 我是可折叠的!</h1> <p>我是可折叠内容。</p> </div> </div> <div data-role="footer"> <h1>此处是页脚文本</h1> </div> </div> </body> </html>
结果:
编辑上面的代码,点击查看结果。
yige.org
- 试一个