我正在拼命地更改我的 jssor 滑块中缩略图的类名。
我有以下代码:
<div><a u="image" href="[+ic.property.Href+]" title="[+ic.resources.exclusive+] [+ic.property.type+] [+ic.resources.in+] [+ic.property.area+]">
<img u="image" src="[+ic.GetImageUrl+]" />
<img u="thumb" src="[+ic.GetImageUrl+]" class="[+ic.property.imgClass+]" />
<div class="tnt_caption_container">
<div class="tnt_caption_content">
[+ic.propertyTitle+] · [+ic.property.price+]
</div>
</a></div>
</div>
变量 [+ic.property.imgClass+] 可以为空,也可以不为空...我要归档的是将某些图像与另一个 .png(新的、独占的等)重叠,只要它们满足某些条件。
如果我在 div 之前添加一个元素,则加载页面时它根本就不存在。并且都有 class=""... 即使我删除了我的代码,类名仍然是空的。所以我假设 js 在创建滑块时会清空类名,但我不知道这是在哪里发生的。
感谢您的关注。