Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲

jQuery Mobile 實作:多頁面行動版公司簡介

編輯:關於 Android 開發

jQuery Mobile 實作:多頁面行動版公司簡介

下面這份範例以 jQuery Mobile 打造一個行動版的公司簡介頁面,示範了 page、header、content、footer 的基本結構,以及底部頁籤導覽與 listview 通訊錄(含搜尋過濾)的實作方式。

<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-width=1.0,maximum-width=1.0,user-scalable=no"/> <title>無標題文檔</title> <link rel="stylesheet" href="https://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="https://code.jquery.com/jquery-1.8.3.min.js"></script> <script src="https://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> </head> <body> <div data-role="page" id="home"> <div data-role="header"> <a data-role="button" href="#home" data-icon="home">主頁</a> <h4>公司簡介</h4> <a data-role="button" href="#home" data-icon="search">搜索</a> </div> <div data-role="content">歡迎訪問公司!我公司是專業制作手機app的軟件公司。</div> <div data-role="footer" class="ui-btn"> <a data-role="button" href="#home">公司簡介</a> <a data-role="button" href="#page1">技術力量</a> <a data-role="button" href="#page2">聯系方式</a> <a data-role="button" href="#page3">通訊錄</a> </div> </div> <div data-role="page" id="page1"> <div data-role="header"> <a data-role="button" href="#home" data-icon="home">主頁</a> <h4>技術力量</h4> <a data-role="button" href="#home" data-icon="search">搜索</a> </div> <div data-role="content">公司有專業設計師、軟件開發工程師數十名。</div> <div data-role="footer" class="ui-btn"> <a data-role="button" href="#home">公司簡介</a> <a data-role="button" href="#page1">技術力量</a> <a data-role="button" href="#page2">聯系方式</a> <a data-role="button" href="#page3">通訊錄</a> </div> </div> <div data-role="page" id="page2"> <div data-role="header"> <a data-role="button" href="#home" data-icon="home">主頁</a> <h4>聯系方式</h4> <a data-role="button" href="#home" data-icon="search">搜索</a> </div> <div data-role="content">QQ:23110134。</div> <div data-role="footer" class="ui-btn"> <a data-role="button" href="#home">公司簡介</a> <a data-role="button" href="#page1">技術力量</a> <a data-role="button" href="#page2">聯系方式</a> <a data-role="button" href="#page3">通訊錄</a> </div> </div> <div data-role="page" id="page3"> <div data-role="header"> <a data-role="button" href="#home" data-icon="home">主頁</a> <h4>通訊錄</h4> <a data-role="button" href="#home" data-icon="search">搜索</a> </div> <div data-role="content"> <ul data-role="listview" data-autodividers="true" data-inset="true" data-filter="true" data-filter-placeholder="搜索姓名..."> <li>Bill Gates</li> <li>James Wang</li> <li>Jeff Chen</li> <li>陳安國 歐巴</li> </ul> </div> <div data-role="footer" class="ui-btn"> <a data-role="button" href="#home">公司簡介</a> <a data-role="button" href="#page1">技術力量</a> <a data-role="button" href="#page2">聯系方式</a> <a data-role="button" href="#page3">通訊錄</a> </div> </div> </body> </html> 
  1. 上一篇文章:
  2. 下一篇文章:
Copyright © Android教程網 All Rights Reserved