2012-02-17 36 views
0

我正尝试使用Phonegap Windows Phone模板使用jQuery Mobile。 我遇到的问题是列表项目图标不会显示。 我的代码如下:与Windows Phone模拟器不显示jQuery Mobile图标

<!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> 

如果我在浏览Chrome或Firefox文件的图标是可见的。它只在Windows Phone模拟器中失败。 有没有人找到解决方案?

+0

您是否在Destkop IE9中尝试过? WP7的IE基于IE9,因此可能存在相同的问题,调试起来会更容易。 – 2012-02-17 08:35:16

回答