【问题标题】:JQTOUCH animation effect not working on separate pagesJQTOUCH 动画效果在单独的页面上不起作用
【发布时间】:2011-07-26 07:19:52
【问题描述】:

我想使用 jqtouch 动画效果。我的场景是假设我有两个名为 first.html 和 second.html 的 html 页面。 First.html 有一个引用 second.html 的锚标记。而 second.html 也有一个引用 first.html 的锚标记。有了这个 href 我也传递了查询参数。我想在这个页面之间有动画效果。

我无法使用 jqtouch 提供效果,因为示例应用程序在同一页面本身显示效果。请提供有关此效果的一些帮助。我应该在脚本中进行哪些更改并提供示例代码。

谢谢

【问题讨论】:

    标签: jquery jsp mobile jqtouch


    【解决方案1】:

    您是否尝试过 addydmasi 在JQTouch Animations Wiki 上提供的建议?粘贴下面的相关评论以方便参考:

    To those who want to animate between two separate web pages, try this in your <body>:
    
    <div id="main"><ul><li><a href="#page1" class="slide">Go to another page</a></li></ul></div>
    <div id="page1"><iframe src="http://google.com">Error</iframe></div>
    Replace the src with the file name of the second page and also "page1" with any other name. Then add this to your <head>:
    
    <style type="text/css">div>iframe{width:100%;height:100%;margin:0;padding:0;border-width:0;}</style>
    

    让我们知道这是否可行。

    【讨论】:

    • 嘿,谢谢你的回答,我已经尝试了很多方法,但是 iframe 还在,所以我会试试这个。
    猜你喜欢
    • 1970-01-01
    • 2017-01-31
    • 2012-10-27
    • 2012-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多