自定义jQuery Mobile工具栏按钮
来源:互联网 发布:秋冬日系男装搭配 知乎 编辑:程序博客网 时间:2024/05/16 17:22
自定义jQuery Mobile工具栏按钮
1、实现效果
2、代码
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"><link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"><script src="http://code.jquery.com/jquery-1.8.3.min.js"></script><script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script><style type="text/css" media="screen"><!-- 自定义CSS:工具栏自定义带文字按钮 -->.toolbar_btn { margin-left:5px; height:35px; overflow:hidden;}.header_btn div { float:left; height:100%; line-height:35px;}.header_btn div:last-child { text-decoration:none; font-size:14px; color:#FFF; font-family:Microsoft YaHei; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; width:80px;}<!-- The End --></style></head><body><div data-role="page" id="pageone"> <div data-role="header" data-position="fixed" data-tap-toggle="false"> <h1>Contacts</h1> <a href="#pageHome" class="ui-btn-left" data-transition="slidefade" data-role="none"> <div class="header_btn"> <!-- 使用<img> 的 width、height、padding、控制图片的大小和位置 --> <div><img src="images/btn_back.png" width="10" height="21" style="padding:6px"/></div> <div>我的信息</div> </div> </a> </div> <div data-role="content"> <p>在此处插入正文</p> </div> <div data-role="footer" data-position="fixed" data-tap-toggle="false" data-theme="f"> <h1>在此处插入页脚文本</h1> </div></div> </body></html>
0 0
- 自定义jQuery Mobile工具栏按钮
- jQuery Mobile 工具栏
- jQuery Mobile 工具栏
- jQuery Mobile 工具栏
- ALV自定义工具栏按钮
- Jquery mobile 自定义 返回按钮 data-rel="back"
- jQuery Mobile 按钮
- jQuery Mobile的按钮
- jquery mobile按钮
- jquery-mobile按钮
- jQuery Mobile 按钮、图标
- jQuery Mobile 按钮
- jquery mobile 按钮(一)
- jquery mobile 按钮(二)
- eclipse扩展自定义工具栏按钮
- Echarts工具栏(自定义按钮)
- jQuery Mobile 自定义按钮图标
- jquery mobile自定义icon
- IOS 随记
- JQuery Mobile 教程
- JavaScript 获取时间,时间戳
- jQuery 选择器
- css透明度的设置 (兼容所有浏览器)
- 自定义jQuery Mobile工具栏按钮
- JQuery Mobile 图片布局
- jQuery Mobile 自定义导航条图标
- iOS ad-Hoc 发布测试应用
- Objective-C UIWebview JS 交互
- IOS 基于APNS消息推(JAVA后台)
- jQuery Mobile 1.4.5 整理
- CSS样式初始化代码
- jquery 性能优化