jquery mobile視圖的切換和跳轉,jquerymobile

來源:互聯網
上載者:User

jquery mobile視圖的切換和跳轉,jquerymobile

<!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" data-position="fixed">
            <div data-role="header">
                <h1>三國</h1>
            </div>
            <div data-role="content">
                <a data-role="button" data-icon="forward" data-theme="a" href="#page_liu">蜀國</a>
                <a data-role="button" data-icon="forward" data-theme="a" href="#page_wu">吳國</a>
                <a data-role="button" data-icon="forward" data-theme="a" href="#page_cao">魏國</a>
            </div>
            <div data-role="footer" data-position="fixed">
                <h4>三國時代</h4>
            </div>
         </div>
         <div data-role="page" id="page_liu" data-position="fixed">
            <div data-role="header">
                <h1>蜀國</h1>
                <a data-role="button" data-icon="back" data-theme="a" href="#homepage">返回</a>
            </div>
            <div data-role="content">
                劉備,關羽,張飛
            </div>
            <div data-role="footer" data-position="fixed">
                <h4>劉備的天下</h4>
            </div>
         </div>
         <div data-role="page" id="page_wu" data-position="fixed">
            <div data-role="header">
                <h1>吳國</h1>
                <a data-role="button" data-icon="back" data-theme="a" href="#homepage">返回</a>
            </div>
            <div data-role="content">
              孫權,周瑜,黃蓋
            </div>
            <div data-role="footer" data-position="fixed">
                <h4>孫權的天下</h4>
            </div>
         </div>
         <div data-role="page" id="page_cao" data-position="fixed">
            <div data-role="header">
                <h1>魏國</h1>
                <a data-role="button" data-icon="back" data-theme="a" href="#homepage">返回</a>
            </div>
            <div data-role="content">
                曹操,曹仁,曹丕
            </div>
            <div data-role="footer" data-position="fixed">
                <h4>曹操的天下</h4>
            </div>
         </div>
     </body>
</html>

:

 

 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.