JQuery Mobile不能与Internet Explorer一起使用? [英] jQuery Mobile not working with Internet Explorer?
本文介绍了JQuery Mobile不能与Internet Explorer一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试让我的jQuery Mobile与Internet Explorer配合使用。
我的代码非常简单,它只是一个小表单。
我在那里放了一个演示:http://pogopixels.com/jqmtest.html
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="content">
<form action="http://mxc.local/api/signup" method="post" accept-charset="utf-8">
<div data-role="fieldcontain">
<label for="email">Email</label><input type="text" id="email" name="email" />
</div>
<div data-role="fieldcontain">
<label for="username">Username</label><input type="text" id="username" name="username" />
</div>
<div data-role="fieldcontain">
<label for="password">Password</label><input type="password" id="password" name="password" />
</div>
<div data-role="fieldcontain">
<label for="confirmPassword">Confirm</label><input type="password" id="confirmPassword" name="confirmPassword" />
</div>
<button name="submit">Sign Up</button>
</form>
</div> <!-- /content -->
</div>
<!-- /page -->
</body>
</html>
它可以在Firefox和Chrome中使用,但IE9会显示空白页面。
IE在底部显示类似"显示本地主机的问题使IE切换到兼容模式"的消息。
你知道我能做些什么来让它工作吗?
推荐答案
我在另一个问题中得到了答案-Mobilejquery show nothing on Internet explorer
我们停止了在IE上测试jQuery手机,因为很多东西都不起作用,如果它在所有手机和Chrome/FF上都运行得很好,我猜为什么要麻烦-它是为手机设计的,你可以在17:17在Chrome-Clay Liu 2月8日17:17开发
遗憾的是,对我来说,不支持IE会破坏交易(即使该框架确实是为手机设计的)。
这篇关于JQuery Mobile不能与Internet Explorer一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文