我的主页使用jQuery Mobile样式,当我单击链接转到另一个页面(print.php)时,尽管我没有将此样式添加到此页面标题中,但它仍使用jQuery Mobile设置我的print.php样式。
页面index.php:
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<!--This button goes to print.php-->
<a class="btn" href="print.php?id=1">
页面print.php:
<!-- I have also try to remove jQuery Mobile even if it's not added in the header-->
<div class="container" data-enhance="false">
但是,当我刷新页面时,它可以工作。
你能帮我吗?
谢谢
凯文
看一下jQM文档:
http://demos.jquerymobile.com/1.4.5/navigation-linking-pages/
默认情况下,页面是通过AJAX加载到当前DOM中的。为了击败这个添加
data-ajax="false"
到您的链接。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句