jQuery代码未在Android手机上运行 [英] jquery code is not running on android phone
问题描述
我正在尝试为我的移动网页制作一个弹出表单.它在我的笔记本电脑的Firefox上运行良好.但是,当我从android浏览器测试页面时,它只是显示一个空白页面.请帮助我,如何使我的网页适合手机? 我的代码链接为 http://dl.dropbox.com/u/5420677/myfile. html 要查看它,请将此文件解压缩到同一文件夹中: http://dl.dropbox.com/u/5420677/js.zip
I am trying to make a pop-up form for my mobile web page. It is working perfectly on firefox of my laptop. But when I test the page from an android browser, it's just showing an empty page. Please help me out how can I make my web-page suitable for mobile phones? Link of my code is http://dl.dropbox.com/u/5420677/myfile.html To see it, also extract this file into the same folder : http://dl.dropbox.com/u/5420677/js.zip
firefox中出现了一个弹出式窗体,但是现在在android的浏览器中. 当我删除5、6和7号行时,它也可以从android进行访问,但是显然弹出功能消失了,这表明javascript正在产生一些问题...
A pop-up form is appearing from firefox, but now on android's browser. When I remove the line no 5,6 and 7, it becomes accessible from android also, but then obviously pop-up functionality disappears, which suggests that javascript is creating some problem...
谢谢.
FYI,5,6和7号线是
FYI, 5,6 and 7th lines are
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
推荐答案
For mobile use, have a look at jQuery Mobile - Creating dialogs
这篇关于jQuery代码未在Android手机上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!