jquerymobile-18 Dialog
来源:互联网 发布:ios 本地存储数组 编辑:程序博客网 时间:2024/06/07 00:41
在开发的过程中,我们可能需要使用到模态的对话框,在jquerymobile中这个实现很简单,只需要给一个普通的链接添加data-rel="dialog"这样的属性就可以了。下面给出一个例子代码:
<!DOCTYPE html><html><head><title>Dialog Test</title><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" /><script src="http://code.jquery.com/jquery-1.7.1.min.js"></script><script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script></head><body><div data-role="page" id="first"><div data-role="header"><h1>Dialog Test</h1></div><div data-role="content"><p><a href="#page3" data-rel="dialog">A Dialog (dialog)</a></p></div></div><div data-role="page" id="page3"><div data-role="header"><h1>The Dialog</h1></div><div data-role="content"><p>This is the Dialog</p></div></div></body></html>
页面显示如下:
点击后显示:
我们可以在这个Dialog页面添加更加复杂的内容,这个就可以当成一个页面去进行编写,只是跳转的方式不同而已。
- jquerymobile-18 Dialog
- jquerymobile-8 Dialog
- jquerymobile
- jqueryMobile
- jQueryMobile
- jqueryMobile+phoneGap
- jquerymobile 研究
- jquerymobile 基础教程
- jquerymobile实例
- jqueryMobile+backbone
- JQueryMobile 基础
- jquerymobile 小记
- hello jQueryMobile
- jquerymobile 起航
- jquerymobile API
- JqueryMobile Demo
- JQueryMobile学习
- jQueryMobile基础知识
- 《易道客》源码剖析之二:模块的定义和使用
- java中的String... args
- 直接插入排序练习:POJ 2388
- java执行Linux命令 .
- iOS开发中@property的属性介绍
- jquerymobile-18 Dialog
- 堆排序练习:POJ 2388
- 2012年黑龙江省测绘地理信息质检人员暨国家2000大地坐标系培训合格人员名单
- 利用Java Reflect机制编写万能toString()方法
- URL去重
- 连接测试用例与待测系统
- 对malloc和free的理解1
- 各种数据结构的速度
- java网络编程--网络模型概述