gpt4 book ai didi

javascript - JSSOR 将当前图像的标签显示为缩略图

转载 作者:行者123 更新时间:2023-12-03 10:25:18 24 4
gpt4 key购买 nike

我正在使用jssor 。我目前有一个带有缩略图箭头的 slider 。

我想保留 2 个箭头,而不是图像,以显示与图像相关的文本和仅一个标签文本。类似于以下内容:
jssor-text-label

这可以从内部实现吗jssor

更新说明

我有 6 张正在滑动的图像,我想在每张图像上显示一个图像标签。如果我尝试:

<div u="thumb">your text</div>

它放置了 6 个文本,我只想显示当前图像的文本。

最佳答案

实现目标的两种方法,

  1. 使用文本格式的缩略图导航器。

    示例 1:http://www.jssor.com/skin/thumbnail-09.source.html
    示例 2:http://www.jssor.com/skin/thumbnail-10.source.html

  2. 在每张幻灯片中添加内容元素。

    <div u="slides" ...>
    <div>
    <img u="image" .../>
    <div style="position: absolute; bottom: 0px; left: 0px; width: 600px; height: 30px; color: #fff; background-color: #000; line-height: 30px;">
    your text 1
    </div>
    </div>
    <div>
    <img u="image" .../>
    <div style="position: absolute; bottom: 0px; left: 0px; width: 600px; height: 30px; color: #fff; background-color: #000; line-height: 30px;">
    your text 2
    </div>
    </div>
    </div>

关于javascript - JSSOR 将当前图像的标签显示为缩略图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29433698/

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