Php JQuery手机样式持续存在于我链接到的页面中
我正在使用一个链接,从我使用Php JQuery手机样式持续存在于我链接到的页面中,php,jquery,html,css,jquery-mobile,Php,Jquery,Html,Css,Jquery Mobile,我正在使用一个链接,从我使用jquerymobile的页面链接到我不使用的页面。由于某种原因,Jquery Mobile样式会一直保留在我链接到的页面上,直到我刷新页面,在这种情况下页面会正确加载。我对可能导致这个问题的原因感到困惑,我已经在Firefox和Chrome上进行了测试。我试过了,但都不走运 有人知道这是什么原因吗 提前谢谢 hello\u world.php: <html> <head> <meta name="viewport" content="w
jquerymobile
的页面链接到我不使用的页面。由于某种原因,Jquery Mobile
样式会一直保留在我链接到的页面上,直到我刷新页面,在这种情况下页面会正确加载。我对可能导致这个问题的原因感到困惑,我已经在Firefox和Chrome上进行了测试。我试过了,但都不走运
有人知道这是什么原因吗
提前谢谢
hello\u world.php:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
</head>
<body>
<a href="create2.php" data-icon="plus" class="ui-btn-left">Create</a>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<form>
Title: <input type="text" name="title" value="">
submit: <input type="submit" value="submit">
</form>
</body>
</html>
create2.php:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
</head>
<body>
<a href="create2.php" data-icon="plus" class="ui-btn-left">Create</a>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<form>
Title: <input type="text" name="title" value="">
submit: <input type="submit" value="submit">
</form>
</body>
</html>
标题:
提交:
参考本页了解jquerymobile的链接如何工作
将此属性设置为anchorrel=“external”,data ajax=“false”
指向其他域或具有rel=“external”的链接,
数据ajax=“false”或目标属性不会使用ajax加载
默认链接行为:Ajax
若要启用动画页面转换,请删除指向
外部页面(例如products.html)将通过Ajax加载。这样做
框架会悄悄地解析链接的href以制定
Ajax请求(Hijax)并显示加载微调器所有这些都是
由jQuery Mobile自动完成
试试
太棒了!这就成功了。非常感谢你的帮助。