jQuery Mobile在下一页保持风格

时间:2015-10-21 14:16:37

标签: css jquery-mobile

我的主页使用jQuery Mobile样式,当我点击链接转到另一个页面(print.php)时,它会使用jQuery Mobile设置我的print.php样式,尽管我没有将此样式添加到此页面标题中。

Page 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">

Page 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">   

然而,当我刷新页面时,它可以工作。

你能帮助我吗?

谢谢

凯文

1 个答案:

答案 0 :(得分:0)

查看jQM文档:

http://demos.jquerymobile.com/1.4.5/navigation-linking-pages/

默认情况下,页面通过AJAX加载到当前DOM中。打败这个添加

data-ajax="false"

到您的链接。