码迷,mamicode.com
首页 > Web开发 > 详细

jquerymobile手风琴事例

时间:2015-01-02 09:43:08      阅读:131      评论:0      收藏:0      [点我收藏+]

标签: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手风琴事例   jquerymobile自定义开发   mobile开发   html5开发   

原文地址:http://blog.csdn.net/y_f123/article/details/42339549

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!