我使用旋转滑块,我想向活动幻灯片中的图像添加一个名为“ active-img”的ID(类别为“ active-revslide”)。 代码是这样的:
<li data-index="rs-231" class="tp-revslider-slidesli active-revslide">
<div class="slotholder" style="position:absolute; top:0px; left:0px; z-index:0;width:100%;height:100%;">
<div class="tp-bgimg defaultimg "style="background-color:undefined;background-repeat:no-repeat;background-image:url(http://xxxx.com);background-size:cover;background-position:center top;width:100%;height:100%;" src="http://xxxx.com"></div></div>
我想要那个:
<li data-index="rs-231" class="tp-revslider-slidesli active-revslide">
<div class="slotholder" style="position:absolute; top:0px; left:0px; z-index:0;width:100%;height:100%;">
<div class="tp-bgimg defaultimg "style="background-color:undefined;background-repeat:no-repeat;background-image:url(http://xxxx.com);background-size:cover;background-position:center top;width:100%;height:100%;" src="http://xxxx.com" id="active-img"></div></div>
该怎么做?有可能吗?