简体   繁体   English

光滑的滑块箭头显示为通用按钮

[英]Slick Slider arrows appearing as generic buttons

I'm using Slick and I'm having issues with the dots and buttons. 我正在使用Slick,但点和按钮有问题。 They appear outside the Slick frame as generic buttons. 它们作为通用按钮显示在Slick框架之外。 Accessibility also isn't working. 可访问性也不起作用。 Edit: Accessibility not working was caused by the slider not having focus. 编辑:辅助功能不起作用是由于滑块没有焦点引起的。

Here's my Slick code: 这是我的Slick代码:

$(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: 这是我的滑块代码以及生成它的JS:

<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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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