看板 Ajax 關於我們 聯絡資訊
大家好 我是初學者,想學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> 謝謝大家 >_< -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.195.54.44 ※ 文章網址: http://www.ptt.cc/bbs/Ajax/M.1412944994.A.FD6.html
Kenqr: 把網址列到htdocs為止這段改為http://localhost試試 10/10 20:51
oToToT: 正常啊 http://jsfiddle.net/uu8djyev/ 10/10 21:32
MangoTW: 用伺服器的方式瀏覽,不要用本機檔案的方式。 10/11 00:28
MARGHT: 你先開browser console看有沒有什麼錯誤 10/16 00:59