[问题] jquery phone只能在ie正常显示

楼主: parkko (薄荷)   2014-10-10 20:42:57
大家好
我是初学者,想学jquery用来开发手机程式
今天买了本书,但是我照著书上key入后
发现除了ie可以正常显示外
chrome以及手机内建的浏览器都无法正常显示((开出现的footer以及header都无法显示)
ie正确显示: http://ppt.cc/PLNi
chrome无法正确显示: http://ppt.cc/1yZc 除此之外还会出现loading的字样
但是我的手机是android的手机,没有ie可用
所以想请问有没有解决方法呢?((这样就无法在手机验证写出来的成果
GOOGLE也不晓得该下什么关键字...试了都没找到想要的
所以上来求救
附上程式码:
<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile Tutorial on Codeforest.net</title>
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script
src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Title</h1>
</div>
<div data-role="content">
<p>The content</p>
</div>
<div data-role="footer">
<h4>The Footer</h4>
</div>
</div>
</body>
</html>
谢谢大家 >_<
作者: Kenqr (function(){})()   2014-10-10 20:51:00
把网址列到htdocs为止这段改为http://localhost试试
作者: oToToT (屁孩)   2014-10-10 21:32:00
作者: MangoTW (不在线上)   2014-10-11 00:28:00
用服务器的方式浏览,不要用本机档案的方式。
作者: MARGHT   2014-10-16 00:59:00
你先开browser console看有没有什么错误

Links booklink

Contact Us: admin [ a t ] ucptt.com