jQuery移動端主題框架:jQuery Mobile Bootstrap Theme
本文由碼農網 – 小峰原創,轉載請看清文末的轉載要求,歡迎參與我們的付費投稿計劃!
jQuery Mobile Bootstrap Theme是一款基於jQuery和Bootstrap的移動端主題框架,有著非常精美的UI介面和簡潔的操作控制元件。之前介紹過的 jQuery UI Bootstrap 主要是PC端的主題框架,跟jQuery UI Bootstrap相比,jQuery Mobile Bootstrap Theme的體積更小,控制元件更適合移動端的操作習慣。
jQuery Mobile Bootstrap Theme 的特點
- UI設計對移動裝置非常友好,控制元件也符合移動端的操作習慣。
- 基於Bootstrap風格,主題清新自然。
- 開源免費,你可以在github上獲取程式碼並自由使用。
jQuery Mobile Bootstrap Theme 的相關例項
按鈕
程式碼:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>jQuery Mobile Bootstrap Theme</title> <link rel="stylesheet" href="themes/Bootstrap.css"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile.structure-1.4.0.min.css" /> <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" /> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script> </head> <body> <div data-role="page" data-theme="a"> <div data-role="header" data-position="inline"> <h1>jQuery Mobile Bootstrap Theme</h1> <div data-role="navbar"> <ul> <li><a href="index.html" data-icon="home">Home</a></li> <li><a href="buttons.html" data-icon="star" class="ui-btn-active">Buttons</a></li> <li><a href="listviews.html" data-icon="grid">Lists</a></li> <li><a href="nav.html" data-icon="search">Nav</a></li> <li><a href="forms.html" data-icon="gear">Forms</a></li> </ul> </div> </div> <div data-role="content" data-theme="a"> <a href="https://github.com/commadelimited/jQuery-Mobile-Bootstrap-Theme" data-role="button" data-icon="star">Get the code</a> <h2>Buttons</h2> <a href="index.html" data-role="button" data-theme="a" data-icon="star">Swatch A</a> <a href="index.html" data-role="button" data-theme="b" data-icon="search">Swatch B</a> <a href="index.html" data-role="button" data-theme="c" data-icon="check">Swatch C</a> <a href="index.html" data-role="button" data-theme="d" data-icon="info">Swatch D</a> <a href="index.html" data-role="button" data-theme="e" data-icon="arrow-d">Swatch E</a> <a href="index.html" data-role="button" data-theme="f" data-icon="delete">Swatch F</a> </div> </div> </body> </html>
效果:
列表
程式碼:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>jQuery Mobile Bootstrap Theme</title> <link rel="stylesheet" href="themes/Bootstrap.css"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile.structure-1.4.0.min.css" /> <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" /> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script> </head> <body> <div data-role="page" data-theme="a"> <div data-role="header" data-position="inline"> <h1>jQuery Mobile Bootstrap Theme</h1> <div data-role="navbar"> <ul> <li><a href="index.html" data-icon="home">Home</a></li> <li><a href="buttons.html" data-icon="star">Buttons</a></li> <li><a href="listviews.html" data-icon="grid" class="ui-btn-active">Lists</a></li> <li><a href="nav.html" data-icon="search">Nav</a></li> <li><a href="forms.html" data-icon="gear">Forms</a></li> </ul> </div> </div> <div data-role="content" data-theme="a"> <a href="https://github.com/commadelimited/jQuery-Mobile-Bootstrap-Theme" data-role="button" data-icon="star">Get the code</a> <h2>Listviews</h2> <ul data-role="listview" data-inset="true" data-divider-theme="a"> <li data-role="list-divider">Swatch A</li> <li data-icon="gear"><a href="">A list item</a></li> </ul> <ul data-role="listview" data-inset="true" data-divider-theme="b"> <li data-role="list-divider">Swatch B</li> <li data-icon="info"><a href="">A list item</a></li> </ul> <ul data-role="listview" data-inset="true" data-divider-theme="c"> <li data-role="list-divider">Swatch C</li> <li data-icon="check"><a href="">A list item</a></li> </ul> <ul data-role="listview" data-inset="true" data-divider-theme="d"> <li data-role="list-divider">Swatch D</li> <li data-icon="grid"><a href="">A list item</a></li> </ul> <ul data-role="listview" data-inset="true" data-divider-theme="e"> <li data-role="list-divider">Swatch E</li> <li data-icon="alert"><a href="">A list item</a></li> </ul> <ul data-role="listview" data-inset="true" data-divider-theme="f"> <li data-role="list-divider">Swatch F</li> <li data-icon="refresh"><a href="">A list item</a></li> </ul> </div> </div> </body> </html>
效果:
選單導航
程式碼:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>jQuery Mobile Bootstrap Theme</title> <link rel="stylesheet" href="themes/Bootstrap.css"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile.structure-1.4.0.min.css" /> <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" /> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script> </head> <body> <div data-role="page" data-theme="a"> <div data-role="header" data-position="inline"> <h1>jQuery Mobile Bootstrap Theme</h1> <div data-role="navbar"> <ul> <li><a href="index.html" data-icon="home">Home</a></li> <li><a href="buttons.html" data-icon="star">Buttons</a></li> <li><a href="listviews.html" data-icon="grid">Lists</a></li> <li><a href="nav.html" data-icon="search" class="ui-btn-active">Nav</a></li> <li><a href="forms.html" data-icon="gear">Forms</a></li> </ul> </div> </div> <div data-role="content" data-theme="a"> <a href="https://github.com/commadelimited/jQuery-Mobile-Bootstrap-Theme" data-role="button" data-icon="star">Get the code</a> <h2>Navigation</h2> <div data-role="header" data-position="inline"> <a href="index.html" data-icon="delete" data-theme="c">Cancel</a> <h1>Edit Contact</h1> <a href="index.html" data-icon="check" data-theme="d">Save</a> </div><br /> <div data-role="footer" class="ui-bar"> <a href="index.html" data-role="button" data-icon="plus">Add</a> <a href="index.html" data-role="button" data-icon="arrow-u">Up</a> <a href="index.html" data-role="button" data-icon="arrow-d">Down</a> </div><br /> <div data-role="footer" data-theme="f"> <div data-role="navbar"> <ul> <li><a href="#" data-icon="check">Yes</a></li> <li><a href="#" data-icon="delete">No</a></li> <li><a href="#" data-icon="alert">Maybe</a></li> </ul> </div> </div><br /> <div data-role="footer" data-theme="a"> <a href="index.html" data-role="button" data-icon="arrow-l" data-iconpos="right">left</a> <a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">right</a> <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="right">up</a> <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="right">down</a> </div> <div data-role="footer" data-theme="b"> <a href="index.html" data-role="button" data-icon="arrow-l" data-iconpos="right">left</a> <a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">right</a> <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="right">up</a> <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="right">down</a> </div> <div data-role="footer" data-theme="c"> <a href="index.html" data-role="button" data-icon="arrow-l" data-iconpos="right">left</a> <a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">right</a> <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="right">up</a> <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="right">down</a> </div> <div data-role="footer" data-theme="d"> <a href="index.html" data-role="button" data-icon="arrow-l" data-iconpos="right">left</a> <a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">right</a> <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="right">up</a> <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="right">down</a> </div> <div data-role="footer" data-theme="e"> <a href="index.html" data-role="button" data-icon="arrow-l" data-iconpos="right">left</a> <a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">right</a> <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="right">up</a> <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="right">down</a> </div> <div data-role="footer" data-theme="f"> <a href="index.html" data-role="button" data-icon="arrow-l" data-iconpos="right">left</a> <a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">right</a> <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="right">up</a> <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="right">down</a> </div> </div> </div> </body> </html>
效果:
表單
程式碼:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>jQuery Mobile Bootstrap Theme</title> <link rel="stylesheet" href="themes/Bootstrap.css"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile.structure-1.4.0.min.css" /> <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" /> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script> </head> <body> <div data-role="page" data-theme="a"> <div data-role="header" data-position="inline"> <h1>jQuery Mobile Bootstrap Theme</h1> <div data-role="navbar"> <ul> <li><a href="index.html" data-icon="home">Home</a></li> <li><a href="buttons.html" data-icon="star">Buttons</a></li> <li><a href="listviews.html" data-icon="grid">Lists</a></li> <li><a href="nav.html" data-icon="search">Nav</a></li> <li><a href="forms.html" data-icon="gear" class="ui-btn-active">Forms</a></li> </ul> </div> </div> <div data-role="content" data-theme="a"> <a href="https://github.com/commadelimited/jQuery-Mobile-Bootstrap-Theme" data-role="button" data-icon="star">Get the code</a> <h2>Forms</h2> <form action="#" method="get"> <p>This page contains various progressive-enhancement driven form controls. Native elements are sometimes hidden from view, but their values are maintained so the form can be submitted normally. Browsers that don't support the custom controls will still deliver a usable experience because all are based on native form elements.</p> <p>There is a complete set of <a href="http://jquerymobile.com/demos/1.2.0/docs/forms/forms-all-mini.html">mini-sized</a> form elements which are useful for toolbars or tighter spaces. <a href="http://jquerymobile.com/demos/1.2.0/docs/forms/forms-all-compare.html">Compare mini and normal</a> form elements side-by-side.</p> <div data-role="fieldcontain"> <label for="name">Text Input:</label> <input type="text" name="name" id="name" value="" /> </div> <div data-role="fieldcontain"> <label for="textarea">Textarea:</label> <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea> </div> <div data-role="fieldcontain"> <label for="search">Search Input:</label> <input type="search" name="password" id="search" value="" /> </div> <div data-role="fieldcontain"> <label for="slider2">Flip switch:</label> <select name="slider2" id="slider2" data-role="slider"> <option value="off">Off</option> <option value="on">On</option> </select> </div> <div data-role="fieldcontain"> <label for="slider">Slider:</label> <input type="range" name="slider" id="slider" value="50" min="0" max="100" data-highlight="true" /> </div> <div data-role="fieldcontain"> <fieldset data-role="controlgroup"> <legend>Choose as many snacks as you'd like:</legend> <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" /> <label for="checkbox-1a">Cheetos</label> <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" /> <label for="checkbox-2a">Doritos</label> <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" /> <label for="checkbox-3a">Fritos</label> <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" /> <label for="checkbox-4a">Sun Chips</label> </fieldset> </div> <div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-type="horizontal"> <legend>Font styling:</legend> <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" /> <label for="checkbox-6">b</label> <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" /> <label for="checkbox-7"><em>i</em></label> <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" /> <label for="checkbox-8">u</label> </fieldset> </div> <div data-role="fieldcontain"> <fieldset data-role="controlgroup"> <legend>Choose a pet:</legend> <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" /> <label for="radio-choice-1">Cat</label> <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2" /> <label for="radio-choice-2">Dog</label> <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3" /> <label for="radio-choice-3">Hamster</label> <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4" /> <label for="radio-choice-4">Lizard</label> </fieldset> </div> <div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-type="horizontal"> <legend>Layout view:</legend> <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" /> <label for="radio-choice-c">List</label> <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" /> <label for="radio-choice-d">Grid</label> <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other" /> <label for="radio-choice-e">Gallery</label> </fieldset> </div> <div data-role="fieldcontain"> <label for="select-choice-a" class="select">Choose shipping method:</label> <select name="select-choice-a" id="select-choice-a" data-native-menu="false"> <option>Custom menu example</option> <option value="standard">Standard: 7 day</option> <option value="rush">Rush: 3 days</option> <option value="express">Express: next day</option> <option value="overnight">Overnight</option> </select> </div> <div class="ui-body ui-body-b"> <fieldset class="ui-grid-a"> <div class="ui-block-a"><button type="submit" data-theme="d">Cancel</button></div> <div class="ui-block-b"><button type="submit" data-theme="a">Submit</button></div> </fieldset> </div> </form> </div> </div> </body> </html>
效果:
對 jQuery Mobile Bootstrap Theme 的介紹就到這裡,詳細資訊及使用方法建議大家前往其官方網站查閱。
本文連結:http://www.codeceo.com/article/jquery-mobile-bootstrap-theme.html
本文作者:碼農網 – 小峰
[ 原創作品,轉載必須在正文中標註並保留原文連結和作者等資訊。]
相關文章
- jquery 封裝 bootstrap tablejQuery封裝boot
- 在vue下引入jquery bootstrapVuejQueryboot
- 使用jQuery仿製網易雲音樂移動端jQuery
- Jquery + Bootstrap 實現搜尋框jQueryboot
- Bootstrap4動態模態視窗jquery外掛bootjQuery
- 通用分頁-基於bootstrap和jQuerybootjQuery
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- PHP + MySQL 學習筆記(七)--- jQuery 及 jQuery Mobile 簡介 + 兩個 練習PHPMySql筆記jQuery
- 情人“劫”,再見 jQuery !Bootstrap 5 將刪除 jQuery 作為依賴項!jQueryboot
- jQuery系列第三章jQuery框架操作CSSjQuery框架CSS
- jQuery 與其他框架相容jQuery框架
- JQuery動畫jQuery動畫
- 基於 Bootstrap 和 jQuery 的 checkbox 的應用bootjQuery
- 移動端UI框架UI框架
- jQuery手機移動端農曆公曆日期時間選擇程式碼jQuery
- jQuery 效果 – 動畫jQuery動畫
- jQuery 效果 – 滑動jQuery
- 用 jQuery 和 Bootstrap 在 WordPress 中新增進度條jQueryboot
- 個人練習前端技術使用Bootstrap、JQuery、thymeleaf前端bootjQuery
- 前端與移動開發----jQuery----JQuery動畫,JQ操作元素屬性,JQ操作元素樣式(大量案例)前端移動開發jQuery動畫
- jQuery初探:自制jQueryjQuery
- NG-ZORRO-MOBILE (Ant Design Mobile of Angular) 移動端UI元件庫正式釋出AngularUI元件
- hexo-theme-next主題設定Hexo
- flutter theme 主題樣式生成工具Flutter
- 在Vue專案中使用npm安裝bootstrap以及jqueryVueNPMbootjQuery
- jquery和bootstrap獲取checkbox選中的多行資料jQueryboot
- 基於Bootstrap的jQuery使用者嚮導外掛bootjQuery
- 我的’jQuery’和jQueryjQuery
- jQuery 動畫 - animate() 方法jQuery動畫
- jQuery 效果 – 停止動畫jQuery動畫
- 使用jquery和使用框架的區別jQuery框架
- Flutter 樣式基礎之 Theme 主題Flutter
- 「Dcat Admin 主題外掛」 Dcat-Theme
- jQuery 遇到問題記錄jQuery
- 基於Bootstrap的強大jQuery表單驗證外掛bootjQuery
- jQueryjQuery
- jquery動態設定selectjQuery
- jQuery-錨點動畫jQuery動畫
- jQuery 動作/方法連結jQuery