jquery mobile 移动web(4)
下拉菜单:
设置label 元素的for 属性为 select label 元素的文本内容作为选项的名称 定义div元素并设置data-role 属性值为 fieldcontain.
<div data-role="controlgroup">
<label for="select" class="select">请选择你的兴趣</label>
<select name="select" id="select">
<option>音乐</option>
<option>电影</option>
<option>体育</option>
<option>旅游</option>
</select>
</div>
分组的选择菜单
要在select 元素制定optgroup。
<div data-role="controlgroup">
<label for="select">请选择你的兴趣:</label>
<select name="select" id="select" data-native-menu="true">
<optgroup label="娱乐类"/>
<option>音乐</option>
<option>电影</option>
<optgroup label="文体累"/>
<option>体育</option>
<option>旅游</option>
</select>
</div>
禁用指定Option 数据项的选择菜单
<div data-role="controlgroup">
<label for="select">请选择你的兴趣:</label>
<select name="select" id="select" data-native-menu="true">
<optgroup label="娱乐类"/>
<option disabled="">音乐</option>
<option>电影</option>
<optgroup label="文体累"/>
<option>体育</option>
<option>旅游</option>
</select>
</div>
普通连接列表
<div data-role="page">
<header data-role="header">
<h1>列表例</h1>
</header>
<div data-role="content">
<ul data-role="listview" data-theme="g">
<li><a href="#">List 1</a></li>
<li><a href="#">List 2</a></li>
<li><a href="#">List 3</a></li>
<li><a href="#">List 4</a></li>
</ul>
</div>
</div>
多层次嵌套列表。
<div data-role="page">
<header data-role="header">
<h1>列表例</h1>
</header>
<div data-role="content">
<ul data-role="listview" data-theme="g">
<li>
<a href="#" data-add-back-btn="true">List 1</a>
<p >这是第一层</p>
<ul>
<li>
<a>subList 1 of 1</a>
<a>subList 1 of 2</a>
<a>subList 1 of 3</a>
</li>
</ul>
</li>
<li>
<a href="#" data-add-back-btn="true">List 2</a>
<p >这是第二层</p>
<ul>
<li>
<a>subList 2 of 1</a>
<a>subList 2 of 2</a>
<a>subList 2 of 3</a>
</li>
</ul>
</li>
<li>
<a href="#" data-add-back-btn="true">List 3</a>
<p >这是第三层</p>
<ul>
<li>
<a>subList 3 of 1</a>
<a>subList 3 of 2</a>
<a>subList 3 of 3</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
jquery mobile 移动web(4)的更多相关文章
- JQuery Mobile移动Web应用开发(1): UI开发工具RID介绍
工欲善其事,必先利其器. UI工具可以提高我们开发界面的效率,下面对几款工具做个对比: 1. Codiqa,在JQuery Mobile主页能看到这款工具,看到网上这么多人吹捧这个工具,不过是收费的. ...
- 利用JQuery Mobile开发web app
什么是web app web app 是基于web的应用程序,是针对移动设备优化后的web站点,它具有 开发成本低——采用web开发技术,不需要考虑跨平台以及底层适配问题: 升级简单——不需要通知用户 ...
- jquery mobile 移动web
轻量级框架jQuery Mobile 所需文件 <link rel="stylesheet" href="jquery.mobile-1.1.2/jquery.mo ...
- jQuery Mobile 移动 web 应用程序框架
在这里我们主要讲一下如何引用jQuery Mobile(引用了jQuery Mobile,你就能引用jQuery Mobile里已经封装好的代码,让开发更加快捷简单) 从 CDN 引用 jQuery ...
- jquery mobile 移动web(6)
jquery mobile 针对移动端设备的事件类型. 1.touch 事件. tap 快速触摸屏幕并且离开,类似一种完整的点击操作. taphold 触摸屏幕并保持一段时间. swipe 在1秒内水 ...
- jquery mobile 移动web(5)
有序列表 <div data-role="content"> <ol data-role="listview" data-theme=&quo ...
- jquery mobile 移动web(2)
button 按钮 data-role="button" 将超链接变成button. 具有icon 图标的button 组件. 提供了18常用的图标 data-icon =&quo ...
- jquery mobile 移动web(1)
轻量级框架jQuery Mobile 所需文件 <link rel="stylesheet" href="jquery.mobile-1.1.2/jquery.mo ...
- jquery mobile 移动web(3)
可折叠功能块. div 元素的 data-role 属性设置为 collapsible 代码如下: <div data-role="collapsible"> < ...
随机推荐
- ArrayList集合长度的问题
// 每次集合中实际包含的元素个数(count)超过了可包含元素的个数capcity //的时候集合就会向内存中申请多开启一倍的空间,来保证集合长度够用 static void Main(strin ...
- mvc表单如何绑定bool类型的属性或变量
先来看一组代码: 视图代码: @model MvcTest.Controllers.Test @{ Layout = null; } <!DOCTYPE html> <html> ...
- js之正则表达式基础
字符串是编程时涉及到的最多的一种数据结构,对字符串进行操作的需求几乎无处不在.比如判断一个字符串是否是合法的Email地址,虽然可以编程提取@前后的子串,再分别判断是否是单词和域名,但这样做不但麻烦, ...
- 字符串(1)——Detect Capital
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the u ...
- jquery获取不了ajax动态添加的内容的解决办法
在HTML页面的一个button <div class="ajaxClick"> <button>内容</button> </div> ...
- angular1结合webpack构建工具
目录结构 webpack.config.js const { resolve } = require('path') const webpack = require('webpack') const ...
- Highcharts - Bar Chart & Column Chart
1. 条形图(Bar Chart)需要的数据格式类型如下: ["Luke Skywalker", "Darth Vader", "Yoda" ...
- php 递归的生成目录函数
/** * 递归的生成目录 * @param str $dir 必须是目录 */ function mkdirs($dir) { return is_dir($dir) ?: mkdirs(dirna ...
- 我的SublimeText配置
我的SublimeText改键 [ /** * 我的改键 */ // f1控制中心:f2快速查找:f3查找下一个: { "keys": ["f1"], &quo ...
- 用ESP8266 WIFI模块连接服务器,并实现与服务器相互通讯
最近在做一个智能锁的项目,该项目要求实现在任何地方(当然是要有网络的)可以在手机上用APP开锁.而我负责的部分主要是实现底层与服务器连接,并且要能相互通讯.考虑了很多问题,最终选择了用ESP8266 ...