【发布时间】:2017-08-29 22:29:02
【问题描述】:
当我将一些 jQuery 代码添加到我的网站时,它可以在 chrome 中运行,但在 Firefox、IE 或 Microsoft Edge 中无法运行。当我尝试从头开始在新项目文件中重新编写代码时,我发现它适用于所有浏览器。
问题出在nicescroll.js 文件上;它适用于 Chrome,不适用于 Firefox 或其他浏览器,但我不知道原因;我过去在其他项目中使用过该文件,没有问题。为什么下面的代码在 Firefox 或 Edge 中不起作用?
$(document).ready(function() {
$("html").niceScroll({
cursorcolor:"#229ecf",
cursorwidth:"7px"
});
});
【问题讨论】:
标签: jquery google-chrome firefox microsoft-edge nicescroll