javascript - Gallerific SlideShow 缩略图垂直外观

标签 javascript css

我已经实现了 Gallerific SlideShow,我遇到的问题是缩略图垂直显示在 2 列中。

http://www.davincispainting.com/InteriorGallery.aspx

我需要这些 Thumbs 水平显示 10 Pics X 2 Columns

我试图确定在 galleriffic.js 中更改此设置的位置,但无济于事

最佳答案

你的意思是横跨两行?来自 Gallerrific 页面:

How can I change the number of thumbnail columns?

With the stylesheet used in these examples, each thumbnail is floated left, and thus as many thumbnails that will fit in the width of the column will be displayed. If you want fewer or more columns, make the width of the navigation panel smaller or larger. In all but the last example, I am setting the width using javascript with the following lines in the html page:

$('div.navigation').css({'width' : '300px', 'float' : 'left'});
$('div.content').css('display', 'block');

在您的 HTML 中,找到以下行:

<div id="thumbs" class="navigation" style="width: 300px; float: left; opacity: 1; ">

并增加宽度。您可能需要使用确切的数字。

关于javascript - Gallerific SlideShow 缩略图垂直外观,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5613434/

相关文章:

javascript - 简单形式的 Backbone 验证问题

css - 单个 div 中的双列

javascript - 在 Chrome 中使用 HTML5 和 Javascript 将数据写入本地文件

Css IE 样式问题 - 如何在 IE 中更正这个简单的导航菜单?

javascript - 保持滚动位置的单页 webapp 屏幕转换

css - 使用 css 在 div 周围环绕文本(在文本中间)

android - 如何设计 Android 应用程序的样式?

javascript - 将复选框标签复制到隐藏文本字段

javascript - 在页面加载、刷新和关闭事件上获取不同的警报

javascript - 在带有动态内容的 iframe 中显示加载程序