jquery mobile视图的切换和跳转
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了jquery mobile视图的切换和跳转,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2495字,纯文字阅读大概需要4分钟。
内容图文
<!DOCTYPE html>
<html>
<head>
<title>三国</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" />
<script type="text/javascript" src="
<link rel="stylesheet" href=" http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css " />
<script type="text/javascript" src=" ' title='http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js">' ref='nofollow'>http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"> >
</head>
<body>
<div data-role="page" id="homepage" data-position="fixed">
<div data-role="header">
<h1>三国</h1>
</div>
<div data-role="content">
<a data-role="button" data-icon="forward" data-theme="a" href="#page_liu">蜀国</a>
<a data-role="button" data-icon="forward" data-theme="a" href="#page_wu">吴国</a>
<a data-role="button" data-icon="forward" data-theme="a" href="#page_cao">魏国</a>
</div>
<div data-role="footer" data-position="fixed">
<h4>三国时代</h4>
</div>
</div>
<div data-role="page" id="page_liu" data-position="fixed">
<div data-role="header">
<h1>蜀国</h1>
<a data-role="button" data-icon="back" data-theme="a" href="#homepage">返回</a>
</div>
<div data-role="content">
刘备,关羽,张飞
</div>
<div data-role="footer" data-position="fixed">
<h4>刘备的天下</h4>
</div>
</div>
<div data-role="page" id="page_wu" data-position="fixed">
<div data-role="header">
<h1>吴国</h1>
<a data-role="button" data-icon="back" data-theme="a" href="#homepage">返回</a>
</div>
<div data-role="content">
孙权,周瑜,黄盖
</div>
<div data-role="footer" data-position="fixed">
<h4>孙权的天下</h4>
</div>
</div>
<div data-role="page" id="page_cao" data-position="fixed">
<div data-role="header">
<h1>魏国</h1>
<a data-role="button" data-icon="back" data-theme="a" href="#homepage">返回</a>
</div>
<div data-role="content">
曹操,曹仁,曹丕
</div>
<div data-role="footer" data-position="fixed">
<h4>曹操的天下</h4>
</div>
</div>
</body>
</html>
效果图:
原文:http://blog.csdn.net/y_f123/article/details/42319443
内容总结
以上是互联网集市为您收集整理的jquery mobile视图的切换和跳转全部内容,希望文章能够帮你解决jquery mobile视图的切换和跳转所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。