我正在将[Owl Carousel][1]与Bootstrap一起使用。但最后一项边框在 Owl-Carousel 中不起作用。
我想在项目悬停时添加边框。但右边框不显示在最后一项中。
示例-1
当 Owl Carousel包裹在 bootstrap Grid 中时<div class="col-*-*">...</div>
<div class="container">
<div class="row">
<div class="col-sm-9">
<div id="owl-example1" class="owl-carousel">
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
</div></div></div></div>
所以,我明白了。(不能正常工作。)
示例 2
但是,当 Owl Carousel没有在 bootstrap Grid 中换行时<div class="col-*-*">...</div>
<div class="container">
<div id="owl-example" class="owl-carousel">
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
<div class="item"><img class="lazyOwl img-responsive" src="http://tinyurl.com/lwexfpf" alt="Lazy Owl Image"></div>
</div></div>
所以,我明白了。(工作正常。)
现场演示 - http://jsfiddle.net/harnishdesign/zwd9uysg/18/embedded/result/
如何解决 Example-1 中的边界问题?