简体   繁体   English

光滑的滑块多余的边距/填充顶部

[英]Slick Slider extra margin/padding top

Have run into an issue with slick slider I have never seen before and cannot figure it out myself. 遇到了一个滑滑的问题,我从未见过,自己也无法解决。 The slides seem to be pushed down slightly from their container making them appear outside it and I cannot work out what is causing it. 幻灯片似乎从其容器中被略微向下推,使其出现在其外部,我无法弄清是什么原因引起的。 See screenshot: 看截图: 保证金问题的屏幕截图

Anyone got any ideas on what's causing this weird behaviour? 有人对导致这种奇怪行为的原因有任何想法吗? I have searched through all my code for any hidden margins or paddings that may be causing this and had no luck. 我已经在所有代码中搜索了可能导致这种情况的任何隐藏的边距或填充,但没有运气。

Live site here . 现场直播在这里 You can see this strange behaviour on the top and bottom sliding sections but not the middle one for some reason. 由于某些原因,您可以在顶部和底部滑动部分看到这种奇怪的行为,而在中间部分看不到。

Thanks in advance! 提前致谢!

Change position:relative; 变更position:relative; to position:absolute; position:absolute; style.css line 306. style.css行306。

    .slick-slider .slick-prev {
        left: 50px;
        z-index: 10;
        position: absolute;
    }

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

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