jquery - 最后一项边框在 Owl-Carousel 中不起作用

标签 jquery html css twitter-bootstrap-3 owl-carousel

我正在将[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>

所以,我明白了。 (不能正常工作。) enter image description here

示例 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>

所以,我明白了。 (工作正常。) enter image description here

现场演示 - 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/

相关文章:

javascript - 只将唯一的文件添加到容器中?

javascript - 如何使用 JS 验证表单,然后使用 PHP 和 Ajax 验证表单?

HTML 和 CSS - 在 'Border' 图像中显示图像

html - 浏览器 View 和实际设备之间的响应性差异

jquery - 如何在所有页面宽度上保持背景图像高度相同?

css - onKeyUp onKeyDown 通过元素 AngularJS 在 div 内部移动

javascript - 一次仅将 jquery 脚本应用于一个类

jquery - 为什么 $.post 方法在 IE 中不起作用?

html - 左右边距不一样

html - 在一个 div 中居中多个 <p> 标签