Windows phone 7 Windows Phone emulator不显示jQuery手机图标
我正在尝试将jQuery Mobile与Phonegap Windows Phone模板一起使用。 我遇到的问题是列表项图标不会显示。 我的代码如下:Windows phone 7 Windows Phone emulator不显示jQuery手机图标,windows-phone-7,jquery-mobile,cordova,emulation,Windows Phone 7,Jquery Mobile,Cordova,Emulation,我正在尝试将jQuery Mobile与Phonegap Windows Phone模板一起使用。 我遇到的问题是列表项图标不会显示。 我的代码如下: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-sca
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>test</title>
<link rel="stylesheet" href="jquery.mobile-1.0b2.css" />
<link rel="stylesheet" href="site.css" />
<script type="text/javascript" charset="utf-8" src="jquery.js"></script>
<script type="text/javascript">
$(document).bind("mobileinit", function () {
// As of Beta 2, jQuery Mobile's Ajax navigation does not work in all cases (e.g.,
// when navigating from a mobile to a non-mobile page, or when clicking "back"
// after a form post), hence disabling it.
$.mobile.ajaxEnabled = false;
});
</script>
<script type="text/javascript" charset="utf-8" src="jquery.mobile-1.0b2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
</head>
<body>
<!-- Home Page -->
<div data-role="page" id="home" data-theme="b">
<div data-role="header">
<h1>Home Page</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider">Map</li>
<li><a href="map.html">Map page</a></li>
</ul>
</div>
</div>
<!-- Home Page End -->
</body>
</html>
测验
$(文档).bind(“mobileinit”,函数(){
//从Beta 2开始,jQuery Mobile的Ajax导航并非在所有情况下都有效(例如。,
//从移动页面导航到非移动页面时,或单击“上一步”时
//在表单发布之后),因此禁用它。
$.mobile.ajaxEnabled=false;
});
主页
地图
如果我在Chrome或Firefox中浏览文件,图标是可见的。它只在Windows Phone emulator中失败。
有人找到解决办法了吗?刚刚在这里找到了答案: 啊
只需将图标的构建操作设置为内容您在Destkop IE9中尝试过吗?WP7的IE基于IE9,因此可能存在相同的问题,并且更易于调试。