mouseweel兼容火狐
来源:互联网 发布:java实现发邮件带附件 编辑:程序博客网 时间:2024/04/28 22:19
<div id="box" style="width:500px;height:300px;background-color:#ccc;overflow:auto;"> <div style="height:500px;"></div></div><script type="text/javascript">var isFirefox = /Firefox/i.test(navigator.userAgent); //判断是不是火狐浏览器var mwEvent = !isFirefox ? 'mousewheel' : 'DOMMouseScroll'; //是火狐浏览器用DOMMouseScrolldocument.getElementById('box').addEventListener(mwEvent, function(event) { console.dir(2); });</script>
0 0
- mouseweel兼容火狐
- ie兼容火狐
- Extjs 上传 兼容火狐
- 火狐浏览器兼容
- 火狐插件不兼容
- 火狐兼容检查
- 兼容IE 和火狐
- uploadify兼容火狐问题
- FileUpload 兼容IE8,火狐
- 回车键提交兼容火狐
- 鼠标滚轮兼容火狐,
- 火狐浏览器兼容
- IE和火狐兼容文章javascript兼容
- 【javascript】火狐浏览器兼容原则
- innerText 兼容火狐 ie浏览器
- innerText兼容火狐和IE
- innerText兼容火狐和IE
- 火狐、ie不兼容汇总
- The path "" is not a valid path to the xx-generic kernel headers
- android事件的分发机制
- matlab 图片批量处理
- 蓝桥-树-图最小生成树2
- DDos防护系列之3--DDos防御系统
- mouseweel兼容火狐
- 关于字符串的输入总结
- caffe操作技巧
- 1063. Set Similarity (25)
- SQL模糊查询
- 跟我学SpringMVC目录汇总贴、PDF下载、源码下载
- python_使用matplotlib画饼状图(pie)
- 零基础学习hadoop生态系统到上手工作线路指导初级篇(HBASE篇)
- 输出九九乘法表