Javascript 如何定制fancybox的滚动条?

Javascript 如何定制fancybox的滚动条?,javascript,jquery,css,Javascript,Jquery,Css,在fancybox的帮助下,我成功地实现了弹出窗口。现在我需要定制弹出式滚动条。我想更改滚动条的颜色。 我在图书馆的帮助下试了一下,但没能做到。如果你能提出任何建议,这就是我想做的。 我正在使用WordPress开发 // scroll custom code function wdm_enqueue_styles_and_scripts() { // Custom Scrollbar wp_enqueue_script( 'wdm_custom_scroll',get_te

在fancybox的帮助下,我成功地实现了弹出窗口。现在我需要定制弹出式滚动条。我想更改滚动条的颜色。
我在图书馆的帮助下试了一下,但没能做到。如果你能提出任何建议,这就是我想做的。
我正在使用WordPress开发

// scroll custom code
function wdm_enqueue_styles_and_scripts() {

    // Custom Scrollbar
    wp_enqueue_script(  'wdm_custom_scroll',get_template_directory_uri().'/source /jquery.mCustomScrollbar.concat.min.js', array('jquery'));
    wp_enqueue_style('wdm_custom_scroll_css',get_template_directory_uri().'/sourc e/jquery.mCustomScrollbar.css');
    // your custom JS code
    wp_enqueue_script( 'wdm_custom_js',get_stylesheet_directory().'/source /wdm_custom.js', array('jquery'));
}
add_action( 'wp_enqueue_scripts', 'wdm_enqueue_styles_and_scripts' ); 
这是我的自定义代码

(function(){
    jQuery(window).load(function(){
        jQuery(".wdm_content").mCustomScrollbar();
    });
})(jQuery);

你试过scroll.js吗?不,那是什么?我从哪里可以得到它?这是cdn路径如何使用它。我的意思是使用它的程序是什么