随笔分类 -  前端兼容问题

JS、CSS、HTML5
摘要:滚轮事件 onmousewheel (event.wheelDelta0:滚轮向上) 【firefox不支持】 DOMMouseScroll(使用addEventListener事件绑定) (event.detail 0:滚轮向下) 【firefox支持方法】 滚轮事件兼容写法: function mouseWheelFn(element, upFn, downFn){ elem... 阅读全文
posted @ 2018-09-10 14:22 酸笋 阅读(257) 评论(0) 推荐(0)
摘要:第一种方法:(使用html5shiv) 由于国内google的服务器访问卡,建议调用国内的cdn 下载html5shivhttps://github.com/aFarkas/html5shiv 本人博客下载地址:https://i.cnblogs.com/Files.aspx 第二种方法:(需要映入 阅读全文
posted @ 2018-09-10 13:17 酸笋 阅读(1679) 评论(0) 推荐(0)