简体   繁体   中英

Why does this nicescroll.js function only work in Chrome?

When I add some jQuery code to my website, it working in chrome but not in Firefox, IE, or Microsoft Edge. When I try to rewrite the code again in a new project file from scratch, I found it works in all browsers.

The problem is with the nicescroll.js file; it works with Chrome and not in Firefox or other browsers, but I don't know the reason; I've used the file in other projects in the past without issue. Why wouldn't the below code work in Firefox or Edge?

$(document).ready(function() {
    $("html").niceScroll({
      cursorcolor:"#229ecf",
      cursorwidth:"7px"
  });
});

Please ensure you are using version: "3.7.6" of nice Scroll

It works seamlessly with Mozilla Firefox and Google Chrome.

You can get the latest version here Nicescroll on Github

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM