可折叠功能块。
  div 元素的 data-role 属性设置为 collapsible
  代码如下:
    <div data-role="collapsible">
      <h3>可折叠区域标题</h3>
      <p>这是一个折叠区域的内容,这是一个折叠区域的内容,这是一个折叠区域的内容,这是一个折叠区域的内容,这是一个折叠区域的内容,
        这是一个折叠区域的内容,这是一个折叠区域的内容,这是一个折叠区域的内容,这是一个折叠区域的内容,
        这是一个折叠区域的内容,这是一个折叠区域的内容,这是一个折叠区域的内容,</p>
    </div>

创建手风琴效果。
  在最外层的div元素定义 data-role 属性值为 collapsible-set

  Form表单。
    1普通文本框。
      <label for="name">name:</label>
      <input type="text" name="name" id="name" value="">
    2.密码文本框
      <label for="password">passwored</label>
      <input type="password" name="password" id="password" value="">
    3.文本类型文
      <label for="content">content:</label>
      <textarea cols="40" rows="4" name="content" id="content"></textarea>
    4.Number 类型
      <label for="number">password</label>
      <input type="number" name="number" id="number" value="">
    5.tel 类型
      <label for="tel">tel</label>
      <input type="tel" name="telr" id="tel" value="">
    6.email 类型
      <label for="email">email</label>
      <input type="email" name="email" id="email" value="">
    7.URL类型
      <label for="url">url</label>
      <input type="url" name="url" id="url" value="">
    8.search 类型
      <label for="search">search</label>
      <input type="search" name="search" id="search" value="">
    9.Slider 类型
      <label for="slider">slider</label>
      <input type="range" name="range" id="range" value="2" min="0" max="10">
    10.Toggle
      <div data-role="fieldcontain">
        <label for="slider">toggle switches</label>
        <select name="slider" id="slider" data-role="slider">
          <option value="off">关闭</option>
          <option value="on">开启</option>
        </select>
      </div>

单选按钮
  把一组单选按钮放在 fieldset 元素内,同时定义legend 元素表示单选按钮组的名称。 设置fieldset 元素data-role 元素属性为 controlgroup
  表示该元素是一组单选按钮。
  代码如下:
  <fieldset data-role="controlgroup">
    <legend>请选择你的年龄范围:</legend>
    <input type="radio" name="radio-1" id="radio-1" value="any" checked="checked">
    <label for="radio-1">不限</label>
    <input type="radio" name="radio-1" id="radio-2" value="16-22">
    <label for="radio-2">16-22</label>
    <input type="radio" name="radio-1" id="radio-3" value="22-30">
    <label for="radio-3">22-30</label>
  </fieldset>

复选框按钮
  input元素的属性是checkbox 而不是radio.
  <fieldset data-role="controlgroup">
    <legend>点击全选:</legend>
    <input type="checkbox" name="checkbox-1" id="checkbox-1"class="custom">
    <label for="checkbox-1">全选</label>
  </fieldset>

jquery mobile 移动web(3)的更多相关文章

  1. JQuery Mobile移动Web应用开发(1): UI开发工具RID介绍

    工欲善其事,必先利其器. UI工具可以提高我们开发界面的效率,下面对几款工具做个对比: 1. Codiqa,在JQuery Mobile主页能看到这款工具,看到网上这么多人吹捧这个工具,不过是收费的. ...

  2. 利用JQuery Mobile开发web app

    什么是web app web app 是基于web的应用程序,是针对移动设备优化后的web站点,它具有 开发成本低——采用web开发技术,不需要考虑跨平台以及底层适配问题: 升级简单——不需要通知用户 ...

  3. jquery mobile 移动web

    轻量级框架jQuery Mobile 所需文件 <link rel="stylesheet" href="jquery.mobile-1.1.2/jquery.mo ...

  4. jQuery Mobile 移动 web 应用程序框架

    在这里我们主要讲一下如何引用jQuery Mobile(引用了jQuery Mobile,你就能引用jQuery Mobile里已经封装好的代码,让开发更加快捷简单) 从 CDN 引用 jQuery ...

  5. jquery mobile 移动web(6)

    jquery mobile 针对移动端设备的事件类型. 1.touch 事件. tap 快速触摸屏幕并且离开,类似一种完整的点击操作. taphold 触摸屏幕并保持一段时间. swipe 在1秒内水 ...

  6. jquery mobile 移动web(5)

    有序列表 <div data-role="content"> <ol data-role="listview" data-theme=&quo ...

  7. jquery mobile 移动web(2)

    button 按钮 data-role="button" 将超链接变成button. 具有icon 图标的button 组件. 提供了18常用的图标 data-icon =&quo ...

  8. jquery mobile 移动web(1)

    轻量级框架jQuery Mobile 所需文件 <link rel="stylesheet" href="jquery.mobile-1.1.2/jquery.mo ...

  9. jquery mobile 移动web(4)

    下拉菜单: 设置label 元素的for 属性为 select label 元素的文本内容作为选项的名称 定义div元素并设置data-role 属性值为 fieldcontain. <div ...

随机推荐

  1. Java网络编程二

    向web站点发送get post请求,并从web站点取得响应 通相应的set方法,在调用connect()方法前,可以设置请求的各种参数,实现同浏览器类似的访问,调用connect()后可以调用相应的 ...

  2. Instance Segmentation入门总结

    前一阵子好忙啊,好久没更新了.最近正好挖了新坑,来更新下.因为之前是做检测的,而目前课题顺道偏到了instance segmentation,这篇文章简单梳理一下从检测.分割结果到instance s ...

  3. haproxy/nginx+keepalived负载均衡 双机热备 邮件报警 实战及常见问题

    Haproxy 做http和tcp反向代理和负载均衡keepalived 为两台 Haproxy 服务器做高可用/主备切换.nginx   为内网服务器做正向代理,如果业务需求有变化,也可以部分替代 ...

  4. 【起航计划ObjC 001】印第安老斑鸠ObjC的幻想 ---- Ubuntu下安装并使用Obj-C

    如何在最新版本的 Ubuntu下(14.10)来安装.编译Objective-C? Ubuntu已经有了对Objective-C的编译器(gobjc)的安装,因此安装gobjc的步骤可省,如果你用的U ...

  5. static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16

    查看HashMap源码,发现这个static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;  值为16. 这个是位移算法. 例如: 4<& ...

  6. Smokeping配置调整

    smokeping两种邮件报警方式 一 .自带sendmail报警 修改这两句话to = 收件邮箱,多个逗号分隔from = smokealert@本机IP /usr/local/smokeping/ ...

  7. ZT 自定义operator new与operator delete的使用(1)

    http://blog.csdn.net/waken_ma/article/details/4004972 先转两篇文章: 拨开自定义operator new与operator delete的迷雾 C ...

  8. 技术blog

    看到好多人都写技术blog,发现自己工作了快两年居然都没有写过blog,很是惭愧,遂从今天开始不定期更新技术体验,主要是为了记下自己学习摸索技术过程中的经验以及问题解决方案.

  9. github的初步认识

    第一部分:我用代码写了一个简单的可以运行的helloworld代码. 其链接为:https://github.com/ljw305503/CK01.git 第二部分:GitHub是一个分布式的版本控制 ...

  10. (转)写的非常好的一篇HTTP协议详解

    原文地址:http://www.cnblogs.com/TankXiao/archive/2012/02/13/2342672.html#3931004(推荐看原文,因为原文文章末有更详细链接) 当今 ...