程序员人生 网站导航

jquerymobile手风琴事例

栏目:htmlcss时间:2015-01-06 08:42:12

<!DOCTYPE html>
<html>
    <head>
        <title>3国</title>
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" /> 
        <script type="text/javascript" src="
http://code.jquery.com/jquery⑴.5.min.js"></script>
        <link rel="stylesheet" href="
http://code.jquery.com/mobile/1.0a3/jquery.mobile⑴.0a3.min.css" />
        <script type="text/javascript" src="
http://code.jquery.com/mobile/1.0a3/jquery.mobile⑴.0a3.min.js"></script>
    </head>
    <body>
        <div data-role="page" id="homepage">
            <div data-role="header" data-position="fixed">
                <h1>3国</h1>
            </div>
            <div data-role="content">
                <div data-role="collapsible-set">
                   <section data-role="collapsible">
                     <h3>蜀国</h3>
                     <p>
                       蜀汉(221―263年),3国之1,为汉皇室后裔刘备所建立,
                       蜀汉始于昭烈帝刘备,终究汉怀帝(刘渊追谥)刘禅,历2帝,共4102年
                     </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>3分天下</h1>
            </div>
         </div>
     </body>
</html>

效果:

 

 


------分隔线----------------------------
------分隔线----------------------------

最新技术推荐