我正在将[Owl Carousel][1]与Bootstrap结合使用。但最后一项边框在 Owl-Carousel 中不起作用。
我想在元素悬停时添加边框。但最后一项中不显示右边框。
示例 1
当 Owl Carousel wrap 在 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/
如何解决示例 1 中的边界问题?
最佳答案
添加代码段
#owl-example1 {
width : 850px; /* if you dont know the exact width mean set as 100.3% */
}
<强> DEMO
在全屏模式下工作正常
关于jquery - 最后一项边框在 Owl-Carousel 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25865854/