[問題] jquery phone只能在ie正常顯示

看板Ajax作者 (薄荷)時間11年前 (2014/10/10 20:43), 編輯推噓3(301)
留言4則, 4人參與, 最新討論串1/1
大家好 我是初學者,想學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="" rel="nofollow">http://code.jquery.com/jquery-1.4.3.min.js"></script> <script src="" rel="nofollow">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> 謝謝大家 >_< -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.195.54.44 ※ 文章網址: http://www.ptt.cc/bbs/Ajax/M.1412944994.A.FD6.html

10/10 20:51, , 1F
把網址列到htdocs為止這段改為http://localhost試試
10/10 20:51, 1F

10/10 21:32, , 2F
10/10 21:32, 2F

10/11 00:28, , 3F
用伺服器的方式瀏覽,不要用本機檔案的方式。
10/11 00:28, 3F

10/16 00:59, , 4F
你先開browser console看有沒有什麼錯誤
10/16 00:59, 4F
文章代碼(AID): #1KDzHY_M (Ajax)
文章代碼(AID): #1KDzHY_M (Ajax)