标签:jquerymobile手风琴事例 jquerymobile自定义开发 mobile开发 html5开发
<!DOCTYPE html>
<html>
<head>
<title>三国</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css"
/>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
</head>
<body>
<div data-role="page" id="homepage">
<div data-role="header" data-position="fixed">
<h1>三国</h1>
</div>
<div data-role="content">
<div data-role="collapsible-set">
<section data-role="collapsible">
<h3>蜀国</h3>
<p>
蜀汉(221—263年),三国之一,为汉皇室后裔刘备所建立,
蜀汉始于昭烈帝刘备,终于汉怀帝(刘渊追谥)刘禅,历二帝,共四十二年
</p>
</section>
<section data-role="collapsible">
<h3>吴国</h3>
<p>孙权建立</p>
</section>
<section data-role="collapsible">
<h3>魏国</h3>
<p>曹操建立</p>
</section>
</div>
</div>
<div data-role="footer" data-position="fixed">
<h1>三分天下</h1>
</div>
</div>
</body>
</html>
效果:
标签:jquerymobile手风琴事例 jquerymobile自定义开发 mobile开发 html5开发
原文地址:http://blog.csdn.net/y_f123/article/details/42339549