JQuery Mobile实例
2015-07-20 14:59
1111 查看
<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile: Pages within Pages</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
</head>
<body>
<div data-role="page" id="home">
<div data-role="header"><h1>Home</h1></div>
<div data-role="content"><p><a href="#about" data-transition="flip">About this app</a></p></div>
</div>
<div data-role="page" id="about">
<div data-role="header"><h1>About This App</h1></div>
<div data-role="content"><p>This app rocks!<a data-role="button" href="#home" >Go home</a></p></div>
</div>
</body>
<!--让链接以按钮方式呈现data-role="button"
切换页面时的效果data-transition="flip"
定义页面data-role="page"(一个html可以定义多个页面),用id加锚点来跳转
-->
</html>
<html>
<head>
<title>jQuery Mobile: Pages within Pages</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
</head>
<body>
<div data-role="page" id="home">
<div data-role="header"><h1>Home</h1></div>
<div data-role="content"><p><a href="#about" data-transition="flip">About this app</a></p></div>
</div>
<div data-role="page" id="about">
<div data-role="header"><h1>About This App</h1></div>
<div data-role="content"><p>This app rocks!<a data-role="button" href="#home" >Go home</a></p></div>
</div>
</body>
<!--让链接以按钮方式呈现data-role="button"
切换页面时的效果data-transition="flip"
定义页面data-role="page"(一个html可以定义多个页面),用id加锚点来跳转
-->
</html>
相关文章推荐
- jQuery通过CSS()方法给指定的元素同时设置多个样式
- jquery 插件开发
- 用jquery判断输入框还可以输入多少字
- 基于jQuery的新浪游戏首页幻灯片
- JavaScript/jQuery WebIM 及时聊天通信工具 本地客户端
- 加载进度圈,带遮罩层(jquery)
- jQuery.outerWidth() 函数详解
- 关于在项目里使用jquery的ajax函数。
- jquery选中表格的某行变色
- JQuery 异步处理,ajax post get getJSON...
- jquery 自定义事件
- jquery-plugin-validate插件做验证
- jquery实现radio按纽全不选和checkbox全选的实例
- jquery checkbox选择框公用方法
- zTree -- jQuery 树插件 使用小结
- jquery学习记录一:jquery动态添加html元素后设置其绑定事件
- jQuery学习之prop和attr的区别
- jquery animate 的 left right top 动画失效
- Jquery ajax 学习笔记
- 详细介绍jQuery.outerWidth() 函数具体用法