Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/371.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript html图像onclick在移动浏览器上不起作用_Javascript_Html_Jsp - Fatal编程技术网

Javascript html图像onclick在移动浏览器上不起作用

Javascript html图像onclick在移动浏览器上不起作用,javascript,html,jsp,Javascript,Html,Jsp,此代码在计算机浏览器中运行时工作正常,但在移动浏览器上运行时不工作,无法识别onclick事件: <div align="center" style="float:right; padding-top:5%; margin-right:20%;"> <input type="image" src="images/btn_rgest.png" style="width:100%;" onclick="check_phone();return false;"/> &l

此代码在计算机浏览器中运行时工作正常,但在移动浏览器上运行时不工作,无法识别onclick事件:

<div align="center" style="float:right; padding-top:5%; margin-right:20%;">
    <input type="image" src="images/btn_rgest.png" style="width:100%;" onclick="check_phone();return false;"/>
</div>
我也尝试过启动事件,但也不起作用。
有什么帮助吗?

这可能对您很有帮助。它的onClick=typo在您的代码中。