2012-01-05 78 views
0

我没有看到我在做什么错在这里 - 我试图创建一个基线jQuery手机模板。查看Firefox中的css面板,没有呈现css。jQuery Mobile模板

<!DOCTYPE HTML> 
<html lang="en"> 
<head> 
<meta charset="utf-8"> 
<meta name="author" content="Phillip Senn"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>jQuery Mobile template</title> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> 
<link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css"> 
<script> 
$(document).bind("mobileinit", function() { 
    $.mobile.ajaxEnabled = false; 
}); 
</script> 
<script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script> 
</head> 
<body> 
<div data-role="page" id="myPage"> 
    <div data-role="header"> 
     <h1>jQuery Mobile Template</h1> 
    </div> 
    <div data-role="content" id="myContent"> 
     My Content 
    </div> 
    <div data-role="footer"> 
     <h4>Copyright &copy; 2012 Your name here</h4> 
    </div> 
</div> 
</body> 
</html> 

它只是不呈现为jQuery移动页面。

回答

2
+0

呀!我很怀疑,因为我在查看jQuery源代码中的时间戳,但我无法让自己相信它。 – 2012-01-05 18:32:44

+1

现在已经发生了两次,新版本的jQuery(或jQuery Mobile)已经破坏了我一直在努力的工作。我想使用最新版本,但... – 2012-01-05 18:34:42

+1

我认为对于jQm来说,最新版本是他们正在实施的,并且可能无法一直工作 – 2012-01-05 19:07:09