关闭 x
IT技术网
    技 采 号
    ITJS.cn - 技术改变世界
    • 实用工具
    • 菜鸟教程
    IT采购网 中国存储网 科技号 CIO智库

    IT技术网

    IT采购网
    • 首页
    • 行业资讯
    • 系统运维
      • 操作系统
        • Windows
        • Linux
        • Mac OS
      • 数据库
        • MySQL
        • Oracle
        • SQL Server
      • 网站建设
    • 人工智能
    • 半导体芯片
    • 笔记本电脑
    • 智能手机
    • 智能汽车
    • 编程语言
    IT技术网 - ITJS.CN
    首页 » UI前端 »jQuery移动端主题框架:jQuery Mobile Bootstrap Theme

    jQuery移动端主题框架:jQuery Mobile Bootstrap Theme

    2015-07-04 00:00:00 出处:ITJS
    分享

    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 的介绍就到这里,详细信息及使用方法建议大家前往其官方网站查阅。

    上一篇返回首页 下一篇

    声明: 此文观点不代表本站立场;转载务必保留本文链接;版权疑问请联系我们。

    别人在看

    hiberfil.sys文件可以删除吗?了解该文件并手把手教你删除C盘的hiberfil.sys文件

    Window 10和 Windows 11哪个好?答案是:看你自己的需求

    盗版软件成公司里的“隐形炸弹”?老板们的“法务噩梦” 有救了!

    帝国CMS7.5编辑器上传图片取消宽高的三种方法

    帝国cms如何自动生成缩略图的实现方法

    Windows 12即将到来,将彻底改变人机交互

    帝国CMS 7.5忘记登陆账号密码怎么办?可以phpmyadmin中重置管理员密码

    帝国CMS 7.5 后台编辑器换行,修改回车键br换行为p标签

    Windows 11 版本与 Windows 10比较,新功能一览

    Windows 11激活产品密钥收集及专业版激活方法

    IT头条

    智能手机市场风云:iPhone领跑销量榜,华为缺席引争议

    15:43

    大数据算法和“老师傅”经验叠加 智慧化收储粮食尽显“科技范”

    15:17

    严重缩水!NVIDIA将推中国特供RTX 5090 DD:只剩24GB显存

    00:17

    无线路由大厂 TP-Link突然大裁员:补偿N+3

    02:39

    Meta 千万美金招募AI高级人才

    00:22

    技术热点

    微软已修复windows 7/windows 8.1媒体中心严重漏洞 用户可下载安

    卸载MySQL数据库,用rpm如何实现

    windows 7中使用网上银行或支付宝支付时总是打不开支付页面

    一致性哈希算法原理设计

    MySQL数字类型中的三种常用种类

    如何解决SQL Server中传入select语句in范围参数

      友情链接:
    • IT采购网
    • 科技号
    • 中国存储网
    • 存储网
    • 半导体联盟
    • 医疗软件网
    • 软件中国
    • ITbrand
    • 采购中国
    • CIO智库
    • 考研题库
    • 法务网
    • AI工具网
    • 电子芯片网
    • 安全库
    • 隐私保护
    • 版权申明
    • 联系我们
    IT技术网 版权所有 © 2020-2025,京ICP备14047533号-20,Power by OK设计网

    在上方输入关键词后,回车键 开始搜索。Esc键 取消该搜索窗口。