gpt4 book ai didi

javascript - Jssor 非 jquery slider 。一页上有多个 slider

转载 作者:行者123 更新时间:2023-12-02 17:37:52 24 4
gpt4 key购买 nike

有没有办法在一个页面上放置多个 slider ?谢谢

最佳答案

假设一个页面中有 2 个 slider ,第一个是“slider1”,第二个是“slider2”

<script>
jssor_slider1_starter = function (containerId) {
...
};
jssor_slider2_starter = function (containerId) {
...
};
</script>
<div id="slider1_container" style="position: relative; top: 0px; left: 0px; width: 600px;
height: 300px;">
...
<script>
jssor_slider1_starter('slider1_container');
</script>
</div>
<div id="slider2_container" style="position: relative; top: 0px; left: 0px; width: 600px;
height: 300px;">
...
<script>
jssor_slider2_starter('slider2_container');
</script>
</div>

关于javascript - Jssor 非 jquery slider 。一页上有多个 slider ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22466300/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com