夺命雷公狗---微信开发58----微网站之jquery_mobile之控件介绍
我们上一节课里面介绍了基本的jqm是如何用的了,那么这一节课我们就开始玩玩他的控件
1...布局网格
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码:
显示效果有点类似我们常见的表格:
2....列表视图格
代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
显示效果如下所示:
3....可折叠区块,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示:
4....文本输入区块,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
显示效果如下所示:
5....密码输入区域,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示:
6...文本域输入区块,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示:(如果我们不停的回车他也会使自适应的)
7.....选择菜单空间,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>选择菜单控件</b></font>
- <div data-role="fieldcontain">
- <label for="selectmenu" class="select">选项:</label>
- <select name="selectmenu" id="selectmenu">
- <option value="option1">option1</option>
- <option value="option2">option2</option>
- <option value="option3">option3</option>
- </select>
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示,如果在手机端里点击选择的时候会在界面前弹出一个选择的框,
8....复选框控件,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>选择菜单控件</b></font>
- <div data-role="fieldcontain">
- <label for="selectmenu" class="select">选项:</label>
- <select name="selectmenu" id="selectmenu">
- <option value="option1">option1</option>
- <option value="option2">option2</option>
- <option value="option3">option3</option>
- </select>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>复选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup">
- <legend>请选择</legend>
- <input type="checkbox" name="checkbox1" id="checkbox1" class="custom" value="" />
- <label for="checkbox1">选择1</label>
- <input type="checkbox" name="checkbox1" id="checkbox2" class="custom" value="" />
- <label for="checkbox2">选择2</label>
- <input type="checkbox" name="checkbox1" id="checkbox3" class="custom" value="" />
- <label for="checkbox3">选择3</label>
- </fieldset>
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示:
9....单选框控件,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>选择菜单控件</b></font>
- <div data-role="fieldcontain">
- <label for="selectmenu" class="select">选项:</label>
- <select name="selectmenu" id="selectmenu">
- <option value="option1">option1</option>
- <option value="option2">option2</option>
- <option value="option3">option3</option>
- </select>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>复选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup">
- <legend>请选择</legend>
- <input type="checkbox" name="checkbox1" id="checkbox1" class="custom" value="" />
- <label for="checkbox1">选择1</label>
- <input type="checkbox" name="checkbox1" id="checkbox2" class="custom" value="" />
- <label for="checkbox2">选择2</label>
- <input type="checkbox" name="checkbox1" id="checkbox3" class="custom" value="" />
- <label for="checkbox3">选择3</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>单选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup" data-type="horizontal">
- <legend>请选择</legend>
- <input type="radio" name="radio1" id="radio1" value="1" />
- <label for="radio1">男</label>
- <input type="radio" name="radio1" id="radio2" value="0" />
- <label for="radio2">女</label>
- </fieldset>
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示:
10...按钮控件,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>选择菜单控件</b></font>
- <div data-role="fieldcontain">
- <label for="selectmenu" class="select">选项:</label>
- <select name="selectmenu" id="selectmenu">
- <option value="option1">option1</option>
- <option value="option2">option2</option>
- <option value="option3">option3</option>
- </select>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>复选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup">
- <legend>请选择</legend>
- <input type="checkbox" name="checkbox1" id="checkbox1" class="custom" value="" />
- <label for="checkbox1">选择1</label>
- <input type="checkbox" name="checkbox1" id="checkbox2" class="custom" value="" />
- <label for="checkbox2">选择2</label>
- <input type="checkbox" name="checkbox1" id="checkbox3" class="custom" value="" />
- <label for="checkbox3">选择3</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>单选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup" data-type="horizontal">
- <legend>请选择</legend>
- <input type="radio" name="radio1" id="radio1" value="1" />
- <label for="radio1">男</label>
- <input type="radio" name="radio1" id="radio2" value="0" />
- <label for="radio2">女</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>按钮控件</b></font>
- <a href="http://www.showtp.com" data-role="button">按钮</a>
- <!--上面这里其实也是可以跳转到指定的#page控件里面去的-->
- <hr />
- <br />
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
11....滑动控件,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>选择菜单控件</b></font>
- <div data-role="fieldcontain">
- <label for="selectmenu" class="select">选项:</label>
- <select name="selectmenu" id="selectmenu">
- <option value="option1">option1</option>
- <option value="option2">option2</option>
- <option value="option3">option3</option>
- </select>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>复选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup">
- <legend>请选择</legend>
- <input type="checkbox" name="checkbox1" id="checkbox1" class="custom" value="" />
- <label for="checkbox1">选择1</label>
- <input type="checkbox" name="checkbox1" id="checkbox2" class="custom" value="" />
- <label for="checkbox2">选择2</label>
- <input type="checkbox" name="checkbox1" id="checkbox3" class="custom" value="" />
- <label for="checkbox3">选择3</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>单选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup" data-type="horizontal">
- <legend>请选择</legend>
- <input type="radio" name="radio1" id="radio1" value="1" />
- <label for="radio1">男</label>
- <input type="radio" name="radio1" id="radio2" value="0" />
- <label for="radio2">女</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>按钮控件</b></font>
- <a href="http://www.showtp.com" data-role="button">按钮</a>
- <!--上面这里其实也是可以跳转到指定的#page控件里面去的-->
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>滑动控件</b></font>
- <div data-role="fieldcontain">
- <label for="slider">音量:</label>
- <input type="range" name="slider" id="slider" min="0" max="100" value="0" />
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>选择菜单控件</b></font>
- <div data-role="fieldcontain">
- <label for="selectmenu" class="select">选项:</label>
- <select name="selectmenu" id="selectmenu">
- <option value="option1">option1</option>
- <option value="option2">option2</option>
- <option value="option3">option3</option>
- </select>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>复选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup">
- <legend>请选择</legend>
- <input type="checkbox" name="checkbox1" id="checkbox1" class="custom" value="" />
- <label for="checkbox1">选择1</label>
- <input type="checkbox" name="checkbox1" id="checkbox2" class="custom" value="" />
- <label for="checkbox2">选择2</label>
- <input type="checkbox" name="checkbox1" id="checkbox3" class="custom" value="" />
- <label for="checkbox3">选择3</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>单选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup" data-type="horizontal">
- <legend>请选择</legend>
- <input type="radio" name="radio1" id="radio1" value="1" />
- <label for="radio1">男</label>
- <input type="radio" name="radio1" id="radio2" value="0" />
- <label for="radio2">女</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>按钮控件</b></font>
- <a href="http://www.showtp.com" data-role="button">按钮</a>
- <!--上面这里其实也是可以跳转到指定的#page控件里面去的-->
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>滑动控件</b></font>
- <div data-role="fieldcontain">
- <label for="slider">音量:</label>
- <input type="range" name="slider" id="slider" min="0" max="100" value="0" />
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示:
12.....翻转开关控件,代码如下所示:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!--宽高禁缩放 -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
- <!--类webapp-->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <!--状态条 -->
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--电话号码不是链接 -->
- <meta name="format-detection" content="telephone=no">
- <title>jQuery Mobile Web 应用程序</title>
- <link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- </head>
- <body>
- <div data-role="page" id="page1">
- <div data-role="header">
- <h1>header</h1>
- </div>
- <div data-role="content">
- <font style="color:red;font-size:24px;"><b>布局网格</b></font>
- <div class="ui-grid-b">
- <div class="ui-block-a">区块1</div>
- <div class="ui-block-b">区块2</div>
- <div class="ui-block-c">区块3</div>
- <div class="ui-block-a">区块4</div>
- <div class="ui-block-b">区块5</div>
- <div class="ui-block-c">区块6</div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>列表视图格</b></font>
- <br />
- <br />
- <ul data-role="listview">
- <li>
- <a href="">
- <h3>页面1</h3>
- <p>ym1</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面2</h3>
- <p>ym2</p>
- </a>
- </li>
- <li>
- <a href="">
- <h3>页面3</h3>
- <p>ym3</p>
- </a>
- </li>
- </ul>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>可折叠区块</b></font>
- <div data-role="collapsible-set">
- <div data-role="collapsible">
- <h3>标题1</h3>
- <p>内容1</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题2</h3>
- <p>内容2</p>
- </div>
- <div data-role="collapsible" data-collapsed="true">
- <h3>标题3</h3>
- <p>内容3</p>
- </div>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textinput">请输入您的帐号:</label>
- <input type="text" name="textinput" id="textinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>密码输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="passwordinput">请输入您的密码:</label>
- <input type="password" name="passwordinput" id="passwordinput" value="" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>文本域输入区块</b></font>
- <div data-role="fieldcontain">
- <label for="textarea">文本区域:</label>
- <textarea cols="40" rows="10" name="textarea" id="textarea"></textarea>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>选择菜单控件</b></font>
- <div data-role="fieldcontain">
- <label for="selectmenu" class="select">选项:</label>
- <select name="selectmenu" id="selectmenu">
- <option value="option1">option1</option>
- <option value="option2">option2</option>
- <option value="option3">option3</option>
- </select>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>复选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup">
- <legend>请选择</legend>
- <input type="checkbox" name="checkbox1" id="checkbox1" class="custom" value="" />
- <label for="checkbox1">选择1</label>
- <input type="checkbox" name="checkbox1" id="checkbox2" class="custom" value="" />
- <label for="checkbox2">选择2</label>
- <input type="checkbox" name="checkbox1" id="checkbox3" class="custom" value="" />
- <label for="checkbox3">选择3</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>单选框控件</b></font>
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup" data-type="horizontal">
- <legend>请选择</legend>
- <input type="radio" name="radio1" id="radio1" value="1" />
- <label for="radio1">男</label>
- <input type="radio" name="radio1" id="radio2" value="0" />
- <label for="radio2">女</label>
- </fieldset>
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>按钮控件</b></font>
- <a href="http://www.showtp.com" data-role="button">按钮</a>
- <!--上面这里其实也是可以跳转到指定的#page控件里面去的-->
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>滑动控件</b></font>
- <div data-role="fieldcontain">
- <label for="slider">音量:</label>
- <input type="range" name="slider" id="slider" min="0" max="100" value="0" />
- </div>
- <hr />
- <br />
- <font style="color:red;font-size:24px;"><b>翻转开关控件</b></font>
- <div data-role="fieldcontain">
- <label for="flipswitch">选择:</label>
- <select name="flipswitch" id="flipswitch" data-role="slider">
- <option value="off">关</option>
- <option value="on">开</option>
- </select>
- </div>
- </div>
- <div data-role="footer">
- <h1>页面脚注</h1>
- </div>
- </div>
- </body>
- </html>
核心代码如下所示:
展示效果如下所示:
我们在实际的开发的时候,有上面这些控件几乎都没什么问题的了,只需将他们用form包含进来即可实现效果,嘻嘻
夺命雷公狗---微信开发58----微网站之jquery_mobile之控件介绍的更多相关文章
- 夺命雷公狗---微信开发57----微网站之jquery_mobile之入门案例
这节课我们主要用到到jquery_mobile来实现一个点电影播放网站 jquery_mobile(简称JQM)其实就是基于jquery开发出来的一套移动端框架,适应移动用户端市场对浏览与体验从而进一 ...
- 夺命雷公狗---微信开发62----所以memcache对access_token进行全局缓存优化
公众号调用接口并不是无限制的,为了防止公众号的程序错误而引发微信服务器负载异常,默认情况下, 每个公众号调用接口都不能超过一定限制,当超过一定限制时,调用对应接口会收到错误信息,造成调用失败. 我们也 ...
- 夺命雷公狗---微信开发17----自定义菜单的事件推送,响应菜单的CLICK
废话不多说,index.php 代码如下所示: <?php /** * wechat php test */ //define your token require_once "com ...
- 夺命雷公狗---微信开发59----在线点播电影网1之ckplayer播放器
我们节课程就要开始写一个小项目了,这项目主要是写一个在线点播电影影网的,我们用到的播放器是ckplayer ckplayer基本介绍: ckplayer的全称是:超酷flv播放器,他是一款用于网页上播 ...
- 夺命雷公狗---微信开发55----微信js-sdk接口开发(2)接口功能介绍之签名算法
我们JS-SDK里面其实有不少的接口 startRecord---录音 stopRecord---停止录音 playVoice---播放 pauseVoice---暂停播放 uploadImage-- ...
- 夺命雷公狗---微信开发56----微信js-sdk接口开发(3)所有接口功能
按照上节课程里面的介绍,我们可以先将刚才在signatrue.php里获取到的信息填写进jssdk.htm模版文件里填写各个权限的参数 jssdk.htm代码如下: <!DOCTYPE html ...
- 夺命雷公狗---微信开发54----微信js-sdk接口开发(1)之快速入门
js-sdk基本介绍 除去服务号的九大接口外,微信提供了JS-SDK接口,所谓JS-SDK接口也就是在网页中使用javascript来更改网页设置, (比如隐藏右上角的菜单)获取用户状态(比如地理位置 ...
- 夺命雷公狗---微信开发53----网页授权(oauth2.0)获取用户基本信息接口(3)实现世界留言版
前面两节课我们讲的是base型的授权了,那么现在我们开始Userinfo型授权, 先来看下我们的原理图 我们这节课来做一个 世界留言版 系统 1..首先我还是在微信测试平台那里设置好回调页面的域名 2 ...
- 夺命雷公狗---微信开发51----网页授权(oauth2.0)获取用户基本信息接口(1)
如果用户在微信客户端访问第三方网页,公众号可以通过微信网页授权机制,来获取用户基本信息,从而实现业务逻辑. 一般我们用来“数据采集”,“市场调查”,“投票”,只要授权了第三方网页,微信用户无需注册就可 ...
随机推荐
- C/C++获取系统时间
C/C++获取系统时间需要使用Windows API,包含头文件"windows.h". 系统时间的数据类型为SYSTEMTIME,可以在winbase.h中查询到如下定义: ty ...
- JS懒加载
4.如何使用js懒加载图片 a.懒加载图片是基于jquery.js的,所以: <script src="jquery.js" type="text/ja ...
- Solr4+IKAnalyzer的安装配置
一.下载Solr4.10.2 我们以Windows版本为例,solr-4.10.2.zip是目前最新版本,下载地址: http://www.apache.org/dyn/closer.cgi/luce ...
- Maven实战(一)安装与配置
1. 简介 Maven是基于项目对象模型(POM),可以通过一小段描述信息来管理项目的构建,报告和文档的软件项目管理工具. 如果你已经有十次输入同样的Ant targets来编译你的代码.jar或者w ...
- ios证书
内容提要: 安装app时提示 “无法下载应用,此时无法安装“XXX””.我遇到过多次是由于ios的app出现证书问题.本篇文章讲解用ios证书制作过程,以及每个步骤的解释. 正文: Xcode签名至少 ...
- HTML页引用CSS
方法1 使用import 方法引用CSS <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"&g ...
- @MyBatis中的if...else...
<select id="selectSelective" resultMap="xxx" parameterType="xxx"> ...
- POJ 1028解答
#include <iostream>#include <cstdio>#include <cmath>#include <stack>#include ...
- Linux中mod相关的命令 内核模块化 mod相关命令都是用来动态加载内核模块/驱动程序模块
Linux中mod相关的命令 内核模块化 mod相关命令都是用来动态加载内核模块/驱动程序模块 http://baike.baidu.com/link?url=lxiKxFvYm-UfJIxMjz ...
- linux sed命令参数及用法详解
linux sed命令参数及用法详解 http://blog.csdn.net/namecyf/article/details/7336308 1. Sed简介 sed 是一种在线编辑器,它一次处理一 ...