【发布时间】:2015-07-28 18:18:35
【问题描述】:
我在我的项目中使用了水车滑块插件,但在为每个滑块添加标题时遇到了问题。当您将鼠标悬停在滑块 img 上时,它应该在该图像上显示一个框(一个 div)。我设法得到了它,但它不稳定。我想让它稳定并希望为所有图像添加框效果。这意味着当悬停每个 img sety 节目时,应该在它们上面显示它们各自的 box-inner div。我为此创建了一个小提琴,这里是小提琴的链接。 http://jsfiddle.net/4eeukuzf/
<div id="carousel" style="height:500px; width:960px; border:0; position: relative; clear: both; overflow: hidden; margin: 0 auto;">
<div class="box">
<img src="http://development.230i.com/mahaweli_new/images/001.jpg" id="item-1" />
<div class="box-inner"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and make a type specimen book</p></div>
</div>
<a href="#"><img src="http://development.230i.com/mahaweli_new/images/002.jpg" id="item-2" /></a>
<a href="#"><img src="http://development.230i.com/mahaweli_new/images/003.jpg" id="item-3" /></a>
<a href="#"><img src="http://development.230i.com/mahaweli_new/images/004.jpg" id="item-4" /></a>
<a href="#"><img src="http://development.230i.com/mahaweli_new/images/006.jpg" id="item-5" /></a>
</div>
这里是 html 部分。一切都在http://jsfiddle.net/4eeukuzf/ fiddle。请帮助我真的很感激。
【问题讨论】:
标签: javascript jquery html css