简体   繁体   English

Nivo Slider 在 IE 中显示问题

[英]Nivo Slider Display Problem in IE

I am using Nivo Slider, and am experiencing the "stacking" problem -- with all of the images initially loading on top of each other.我正在使用 Nivo Slider,并且遇到了“堆叠”问题——所有图像最初都在彼此之上加载。 I have tried the workaround for this problem described at http://nivo.dev7studios.com/support/ but this results in the images not displaying at all in IE.我已尝试解决http://nivo.dev7studios.com/support/中描述的此问题的解决方法,但这会导致图像在 IE 中根本不显示。 I have also tried the workaround of including "display:none" in the style tag but this has the same effect in IE.我也尝试过在样式标签中包含“display:none”的解决方法,但这在 IE 中具有相同的效果。 You can see the code, currently without the workaround, at http://www.rooftopdrinker.com .您可以在http://www.rooftopdrinker.com查看代码,目前没有解决方法。 Any advice would be appreciated.任何意见,将不胜感激。

I believe something about IE's box model confuses the Nivo code.我相信 IE 的盒子 model 会混淆 Nivo 代码。

Adding this CSS rule seems to fix it:添加此 CSS 规则似乎可以解决它:

#slider { height: 355px; }

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

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