css 如何做UIkit滑块中心模式?

icomxhvb  于 2023-02-01  发布在  其他
关注(0)|答案(1)|浏览(122)

我试着看我的Uikit滑块像这样约4个小时了...

有人能帮我吗?我用完了的想法
下面是我的代码:

<div class="uk-position-relative uk-visible-toggle uk-light" tabindex="-1" uk-slider="center: true">

<ul class="uk-slider-items uk-child-width-1-3">
    <li>
        <img src="images/img1.jpg" alt="">
    </li>
    <li>
        <img src="images/img2.jpg" alt="">
    </li>
    <li>
        <img src="images/img3.jpg" alt="">
    </li>    
    
</ul>

<a class="uk-position-center-left uk-position-small uk-hidden-hover" href="#" uk-slidenav-previous uk-slider-item="previous"></a>
<a class="uk-position-center-right uk-position-small uk-hidden-hover" href="#" uk-slidenav-next uk-slider-item="next"></a>

另外,我不能使用jquery

ikfrs5lh

ikfrs5lh1#

如果仍然相关

li.uk-active:nth-child(2) {}

相关问题