[英]Nivo Slider having problem in Chrome & Safari
I'm using Nivo slider on this page . 我在此页面上使用Nivo滑块。 The problem is that the slider collapses in chrome and safari.
问题在于,滑块在chrome和safari中折叠。 What I need to change?
我需要改变什么?
Secondly, I want to change the title and links on each new images. 其次,我想更改每个新图像的标题和链接。 How will I accomplish this?
我将如何完成? Will I use "afterChange" method?
我会使用“ afterChange”方法吗? I've to load images dynamically using some server-side language (PHP).
我必须使用某些服务器端语言(PHP)动态加载图像。 Please help!
请帮忙!
#nivo-slider is supposed to have a height and width specified, you're applying dimentions to its parent container, #nivo-slider-wrapper. #nivo-slider应该具有指定的高度和宽度,您正在将尺寸应用于其父容器#nivo-slider-wrapper。
If you have more than one question the best practice is to post them separatedly. 如果您有多个问题,最佳做法是将它们分开发布。
Hey. 嘿。 I can't help with the afterChange method, but I can help with the collapsing issues you are having.
我无法使用afterChange方法,但是可以解决您遇到的崩溃问题。
Try putting the following in your styles.css : 尝试将以下内容放入您的styles.css中 :
#slider {
min-height: 400px; //or whatever height you require.
}
And then alter your html for displaying the nivoSlider to: 然后将用于显示nivoSlider的html更改为:
<div id="slider" class="nivoSlider">
//other nivo stuff here.
</div>
Should solve the collapsing problem. 应该解决崩溃的问题。 Good luck :)
祝好运 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.