html5教程-HTML5 经量级框架 jQuery Mobile (多视图页面 ,视图切换动画,dialog 对话框,页面主题) - 7.3

发布时间:2018-12-18 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了html5教程-HTML5 经量级框架 jQuery Mobile (多视图页面 ,视图切换动画,dialog 对话框,页面主题) - 7.3脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。

1.多视图页面 <section data-role="page" id="firstview" data-title="第一个视图">

 

2.视图切换动画 <a href="#secondview" data-rel="dialog" data-transition="pop"> pop slide slideup slidedown fade flip
3.dialog 对话框 <a href="#secondview" data-rel="dialog" data-transition="pop">

 

4.页面主题  <section data-role="page" id="firstview" data-title="第一个视图" data-theme="a">

 

<!DOCTYPE HTML>
<html>
  <head>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>PhoneGap</title>

     
      <link rel="stylesheet" href="jquery.mobile-1.3.1.css">
     
      <script type="text/javascript" charset="utf-8" src="jquery-1.9.0.min.js"></script>
      <script type="text/javascript" charset="utf-8" src="jquery.mobile-1.3.1.js"></script>
  </head>
  <body>
    <section data-role="page" id="firstview" data-title="第一个视图" data-theme="a">
        <header data-role="header" data-theme="b"><h1>第一个视图</h1></header>
        <article data-role="content"><a href="#secondview" data-rel="dialog" data-transition="pop">切换到第二个View</a></article>
        <footer data-role="footer" data-theme="c"><h1>页脚</h1></footer>
    </section>

    <section data-role="page" id="secondview" data-title="第二个视图">
      <header data-role="header">第二个视图</header>
      <article data-role="content"><a href="#firstview" data-transition="flip">切换到第一个View</a></article>
      <footer data-role="footer">页脚</footer>
    </section>
  </body>
</html>

 


 

1.多视图页面 <section data-role="page" id="firstview" data-title="第一个视图">

 

2.视图切换动画 <a href="#secondview" data-rel="dialog" data-transition="pop"> pop slide slideup slidedown fade flip
3.dialog 对话框 <a href="#secondview" data-rel="dialog" data-transition="pop">

 

4.页面主题  <section data-role="page" id="firstview" data-title="第一个视图" data-theme="a">

 

<!DOCTYPE HTML>
<html>
  <head>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>PhoneGap</title>

     
      <link rel="stylesheet" href="jquery.mobile-1.3.1.css">
     
      <script type="text/javascript" charset="utf-8" src="jquery-1.9.0.min.js"></script>
      <script type="text/javascript" charset="utf-8" src="jquery.mobile-1.3.1.js"></script>
  </head>
  <body>
    <section data-role="page" id="firstview" data-title="第一个视图" data-theme="a">
        <header data-role="header" data-theme="b"><h1>第一个视图</h1></header>
        <article data-role="content"><a href="#secondview" data-rel="dialog" data-transition="pop">切换到第二个View</a></article>
        <footer data-role="footer" data-theme="c"><h1>页脚</h1></footer>
    </section>

    <section data-role="page" id="secondview" data-title="第二个视图">
      <header data-role="header">第二个视图</header>
      <article data-role="content"><a href="#firstview" data-transition="flip">切换到第一个View</a></article>
      <footer data-role="footer">页脚</footer>
    </section>
  </body>
</html>

 


 

觉得可用,就经常来吧! 脚本宝典 欢迎评论哦! html5教程,巧夺天工,精雕玉琢。小宝典献丑了!

脚本宝典总结

以上是脚本宝典为你收集整理的html5教程-HTML5 经量级框架 jQuery Mobile (多视图页面 ,视图切换动画,dialog 对话框,页面主题) - 7.3全部内容,希望文章能够帮你解决html5教程-HTML5 经量级框架 jQuery Mobile (多视图页面 ,视图切换动画,dialog 对话框,页面主题) - 7.3所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:CSSHTML