[ Talk is Cheap Show me the CODE ] : jQuery Mobile工具栏
[ Talk is Cheap Show me the CODE ] : jQuery Mobile工具栏
Written In The Font
“ Wirte less Do more”
学习内容:
页眉工具栏和页眉button
页眉是网页身体的头不一样.以下我们演示下在页面工具栏中加入两个连接,中间一个标题.

show the code:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>測试</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/jquery.mobile-1.3.2.css"> <script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.3.2.js"></script> </head>
<body> <div data-role="page" id="subone">
<div data-role="header" data-position="inline">
<a href="#">返回</a>
<h1> 主界面 </h1>
<a href="#">很多其它</a>
</div>
</div> </body>
</html>

导航工具栏
导航工具栏是 jQuery Mobile 的小部件.像tab页,像navbar一样.以下演示下,音乐的一个网页的案例:

show the code:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jeff Li</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/jquery.mobile-1.3.2.css"> <script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.3.2.js"></script> </head>
<body> <div data-role="page" id="subone">
<div data-role="header" data-position="inline">
<a href="#">返回</a>
<h1>音乐 </h1>
<a href="#">很多其它</a>
<div data-role="navbar" >
<ul>
<li><a href="#">古典</a></li>
<li><a href="#">流行</a></li>
<li><a href="#">摇滚</a></li>
</ul>
</div>
</div> <div data-role="content">
<h3>I am a single collapsible element </h3>
<p>I am the content inside of the single collapsible element</p>
</div> </div>
</body>
</html>

页脚工具栏
页脚工具栏,以下实现button并排显示,两端button边角变为圆角:
(左图不是圆角,右图是圆角.代码就是相差个div)

show the code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jeff Li</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/jquery.mobile-1.3.2.css"> <script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.3.2.js"></script> </head>
<body> <div data-role="page" id="subone">
<div data-role="header" data-position="inline">
<a href="#">返回</a>
<h1>音乐 </h1>
<a href="#">很多其它</a>
<div data-role="navbar" >
<ul>
<li><a href="#">古典</a></li>
<li><a href="#">流行</a></li>
<li><a href="#">摇滚</a></li>
</ul>
</div>
</div> <div data-role="content">
<h3>I am a single collapsible element </h3>
<p>I am the content inside of the single collapsible element</p>
</div> <div data-role="footer" class="ui-bar" data-position="fixed">
<div data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button">千千静听</a>
<a href="#" data-role="button">QQ音乐</a>
<a href="#" data-role="button">酷我音乐</a>
</div>
</div>
</div>
</body>
</html>
定位工具栏
定位工具栏,上面我们都用过了.定位工具栏是否已经在可视化范围内.要是工具栏使用固定位子,我们仅仅须要将该属性加入进去:
data-position="fixed".
也能够在page div中使用全屏定位.我们仅仅须要 <div data-role=”page” data-fullscreen=”true”>
Editor's Note
路漫漫其修远兮 我将上下而求索
版权声明:本文博客原创文章,博客,未经同意,不得转载。
[ Talk is Cheap Show me the CODE ] : jQuery Mobile工具栏的更多相关文章
- [ Talk is Cheap Show me the CODE ] : jQuery Mobile页面布
[ Talk is Cheap Show me the CODE ] : jQuery Mobile页面布局 当我们专注地研究人类生活的空虚,并考虑荣华富贵空幻无常时,或许我们正在阿谀逢迎自己懒惰的天 ...
- [ Talk is Cheap Show me the CODE ] : jQuery Mobile页面布局
当我们专注地研究人类生活的空虚,并考虑荣华富贵空幻无常时,也许我们正在阿谀逢迎自己懒惰的天性. Written In The Font 为了app的手机端,我选择了 jQuery Mobile ,学 ...
- 自定义jQuery Mobile工具栏按钮
自定义jQuery Mobile工具栏按钮 1.实现效果
- jQuery Mobile 工具栏
jQuery Mobile 工具栏 工具栏元素常被放置于页眉和页脚中 - 以实现"已访问"的导航: 标题栏 页眉通常会包含页眉标题/LOGO 或一到两个按钮(通常是首页.选项或搜索 ...
- jQuery Mobile的学习 jQuery Mobile工具栏、标题栏、页脚栏的定位学习
程序猿都非常赖.你懂的! 近期在做html5页面的开发,主要做智能终端设备的开发.对于内容比較少的页面,领导提出了要将页眉和页脚定位到网页的最上方和最下方.对于这种要求,事实上一点也只是分.但对于新手 ...
- 经典收藏 50个jQuery Mobile开发技巧集萃
http://www.cnblogs.com/chu888chu888/archive/2011/11/10/2244181.html 1.Backbone移动实例 这是在Safari中运行的一款Ba ...
- (转)经典收藏 50个jQuery Mobile开发技巧集萃
(原)http://www.cnblogs.com/chu888chu888/archive/2011/11/10/2244181.html 经典收藏 50个jQuery Mobile开发技巧集萃 ...
- jQuery Mobile 入门基础教程
jQuery Mobile是jQuery在手机上和平板设备上的版本.jQuery Mobile 不仅会给主流移动平台带来jQuery核心库,而且会发布一个完整统一的jQuery移动UI框架. jQue ...
- 皓轩的jquery mobile之路(二)
jQuery Mobile 使用 HTML5 & CSS3 最小的脚本来布局网页. 编写代码要注意最外层div需要添加data-role="page" ,标题需要添加dat ...
随机推荐
- poj 3270 更换使用
1.确定初始和目标状态. 明确.目标状态的排序状态. 2.得出置换群,.比如,数字是8 4 5 3 2 7,目标状态是2 3 4 5 7 8.能写为两个循环:(8 2 7)(4 3 5). 3.观察当 ...
- ural 1837. Isenbaev's Number bfs
题目链接:http://acm.timus.ru/problem.aspx?space=1&num=1837 描述: Isenbaev是国外的一个大牛. 现在有许多人要参加ACM ICPC. ...
- PHP操作Mysql中间BLOB场
1.MySQL在BLOB字段类型 BLOB场的类型用于存储二进制数据. MySQL在.BLOB它是一种类型的一系列.含有:TinyBlob.Blob.MediumBlob.LongBlob.大小上不同 ...
- Android font-awesome 4.2 icons png(包含holo-light和holo-dark)
项目地址: https://github.com/bitjjj/android-font-awesome-4.2-icon-pngs
- Windows下visual studio code搭建golang开发环境
Windows下visual studio code搭建golang开发环境 序幕 其实环境搭建没什么难的,但是遇到一些问题,主要是有些网站资源访问不了(如:golang.org),导致一些包无法安装 ...
- hdu1881(贪心+dp)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1881 分析:按照结束时间从小到大排序,然后以每个结束点为容量进行01背包,选入的必定符合条件的. 因为 ...
- malloc函数的一种简单的原理性实现
malloc()是C语言中动态存储管理的一组标准库函数之一.其作用是在内存的动态存储区中分配一个长度为size的连续空间.其参数是一个无符号整形数,返回值是一个指向所分配的连续存储域的起始地址的指针 ...
- ORA-00600: 内部错误代码, 参数: [kqlnrc_1]
如以下的错误: Mon Mar 31 18:45:59 2014 Errors in file /oracle/app/oracle/diag/rdbms/zscims/zscims2/trace/z ...
- js实现的侧边栏展开收缩效果
原文地址:http://www.softwhy.com/forum.php?mod=viewthread&tid=12246 <!DOCTYPE html> <html> ...
- 左右mysql事务提交
package com.itheima.trans; import java.sql.Connection; import java.sql.PreparedStatement; import jav ...