2012-02-17 59 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

回答