简体   繁体   中英

Slick Slider arrows appearing as generic buttons

I'm using Slick and I'm having issues with the dots and buttons. They appear outside the Slick frame as generic buttons. Accessibility also isn't working. Edit: Accessibility not working was caused by the slider not having focus.

Here's my Slick code:

$(document).ready(function(){
   $(".single-item").slick({
       accessibility: true,
       arrows: true,
       dots: true
   }); 
});

and here's my slider code as well as the JS that generates it:

<div class="single-item" id="slideshow">

</div>

for (var i = 0; i < images.length; i++)
{
    $("#slideshow").append("<div><img onclick='cover(this)' src='" + images[i] + "'></div>");
}

你是否包括slick-theme.css以下文件slick.css

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