javascript - 缩略图在 Nivo slider 中相互堆叠

标签 javascript jquery html css

我正在使用 Nivo slider ,缩略图相互堆叠,但问题完全与 CSS 相关。

演示页面位于 http://jsbin.com/ebomu4我似乎无法将它们拉下来。

最佳答案

这是我修改的内容,基本上去掉了你之前的内容。演示可以在这里查看 jsfiddle nivo-slider :

.nivo-controlNav {
    position:absolute;
    left: 0px;  //i set the navigation thumb all the way to the left because the size of your thumb + padding + margin was making it overflow to new rows
    bottom:-350px; //setting the navControl position relative to the slide
}

//here is what i added
 .nivo-controlNav a {
    display:inline;
}

.nivo-controlNav img {
    display:inline;
    position:relative;
    margin-right:10px;
}

.nivo-controlNav a.active img {
    border:1px solid #000;
}

我将导航缩略图一直设置到左侧,因为缩略图 + 填充 + 边距的大小使其溢出到新行。我还通过设置 bottom:-350px; 设置了相对于幻灯片的 navControl 位置 我添加了 .nivo-controlNava img 和 img 的事件状态使其显示出来,但由于 slider 的宽度,它会溢出到第 2 行。希望这会有所帮助。

关于javascript - 缩略图在 Nivo slider 中相互堆叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5205675/

相关文章:

jquery - 图像转换示例 : How to do them in Jquery

javascript - 未定义错误: create object with function that returns HTML element

javascript - 使用粘性导航栏滚动到 div

javascript - for循环中声明的变量范围,javascript

php - 哈希片段与服务器端代码冲突

javascript - ReactJS 在等待数据时加载图标

jquery - IE 10 不显示模式。似乎是 jQuery 1.7.1 的动画问题

javascript - Handlebars 和文本区域

javascript - 响应式菜单不显示

javascript - 想在这里使用 Canvas 作为背景