简体   繁体   English

如何使Highslide指尖条可滚动?

[英]How do I make Highslide thumbstrip scrollable?

I wonder how to make a highslide thumbstrip scrollable for cases when there are too many thumbnails to fit into it. 我不知道在缩略图太多而无法容纳的情况下,如何使高滑动指条可滚动。

I've got a highslide gallery here: http://civicsector.org.ua/multimeda/foto/208-akcya-geroyi-nezalezhnost.html 我在这里有一个高滑画廊: http ://civicsector.org.ua/multimeda/foto/208-akcya-geroyi-nezalezhnost.html

However, the thumbnails in it get oblated so that all of them fit into the thumbstrip. 但是,其中的缩略图会变得扁平,因此所有缩略图都可以放入指尖。 Instead, I want them to keep the aspect ratio and to make the thumbstrip scrollable, just like here: http://www.roadrash.no/hs-support/gallery-in-page+caption-above-thumbstrip.html 相反,我希望他们保持长宽比并使滚动条可滚动,就像这里: http ://www.roadrash.no/hs-support/gallery-in-page+caption-above-thumbstrip.html

It seems that my code is identical to what is in the example page, but for some reason the output is different. 看来我的代码与示例页面中的代码相同,但是由于某些原因输出不同。

Could please anyone help me with it? 可以请任何人帮我吗?

Thanks. 谢谢。

Bootstrap's CSS (bootstrap.css:101) is clonflicting with Highslide, add this to your CSS Bootstrap的CSS(bootstrap.css:101)与Highslide冲突,请将其添加到CSS

.highslide-thumbstrip-horizontal img
{
   max-width: inherit;
}

Your own CSS is colliding with the Highslide JS CSS. 您自己的CSS正在与Highslide JS CSS碰撞。 In the bootstrap.css file, lines 101 and following, you have this: 在bootstrap.css文件的第101行及以下行中,您具有以下内容:

img {
   ...
   max-width: 100%;
   ...
}

Remove that max-width attribute. 删除该最大宽度属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM