如下
IE6/7/8/9/Opera12/Firefox5 Safari5/Chrome12 INPUT[type=text]INPUT[type=password]
INPUT[type=radio]
INPUT[type=checkbox]
INPUT[type=button]
INPUT[type=submit]
INPUT[type=image]
INPUT[type=hidden]
INPUT[type=reset]
INPUT[type=submit]
INPUT[type=file]1
BUTTON[type=button] 支持 支持 other 支持 不支持
即Safari/Chrome没有完全支持click方法。click方法写进了HTML5草案,相信不久的将来Safari/Chrome也会支持。
需要注意的Firefox5之前的版本并不是所有元素都支持click方法,从w3help当时测试结果即可看出。
Mozilla官方也有以下一段话
虽然Firefox5现在对所有元素都添加了click方法,仍需注意它的click方法触发不了A的默认行为。IE/Opera却可以。
标签:
click
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com
暂无“各浏览器对click方法的支持差异小结”评论...