IE中的Nivo滑块显示问题 [英] Nivo slider display issue in IE

查看:99
本文介绍了IE中的Nivo滑块显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用nivo滑块进行图像幻灯片播放.一切在FF,Chrome等中看起来都不错.不过,它在IE中的显示却非常奇怪(请参见附件)(在8(xp)+ 9(win7)上进行了测试).

I'm using nivo slider for an image slideshow. All looks good in FF, Chrome etc. It is displaying very strangely in IE though (see attached) (tested on 8(xp) + 9(win7)).

以前有人遇到过吗?

这是代码:

<div class="slider-wrapper theme-default">
            <div id="slider" class="nivoSlider">

                    <img src="pathtoimage" alt="" />
                            <img src="pathtoimage" alt="" />
                       <img src="pathtoimage" alt="" />
                            <img src="pathtoimage" alt="" />

            </div>
        </div>

.

$('#slider').nivoSlider({
            effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
            slices: 15, // For slice animations
            boxCols: 8, // For box animations
            boxRows: 4, // For box animations
            animSpeed: 500, // Slide transition speed
            pauseTime: 3000, // How long each slide will show
            startSlide: 0, // Set starting Slide (0 index)
            directionNav: false, // Next & Prev navigation
            directionNavHide: true, // Only show on hover
            controlNav: true, // 1,2,3... navigation
            controlNavThumbs: false, // Use thumbnails for Control Nav
            pauseOnHover: true, // Stop animation while hovering
            manualAdvance: false, // Force manual transitions
            prevText: 'Prev', // Prev directionNav text
            nextText: 'Next', // Next directionNav text
            randomStart: true, // Start on a random slide
            beforeChange: function(){}, // Triggers before a slide transition
            afterChange: function(){}, // Triggers after a slide transition
            slideshowEnd: function(){}, // Triggers after all slides have been shown
            lastSlide: function(){}, // Triggers when last slide is shown
            afterLoad: function(){} // Triggers when slider has loaded
        });

.

#slider { height: 309px; }
    .nivoSlider {position:relative; background:url(../thirdparty/nivo-slider/themes/bar/loading.gif) no-repeat 50% 50%; width:640px; height: 309px; box-shadow: none !important; float: left}
    .nivoSlider img {position:absolute; top:0px; left:0px; display:none;}
    .nivoSlider a {border:0; display:block;
    }

    .sliderSurround{position: relative; width: 640px; height: 309px;}
    .nivo-controlNav{position: absolute; bottom: 0; right: 0; z-index: 999;}
        .nivo-control{background-image: none !important; background-color: #E00019 !important; cursor: pointer;}
        .nivo-control.active{background-color: #fff !Important}
        .theme-default .nivo-controlNav a{height: 16px !important; width: 16px; margin:0 4px;}
        .theme-default .nivo-controlNav{padding: 15px 10px !important}

推荐答案

我注意到重复图像部分(15)的数量与其中的默认切片"设置相关.我将其更改为1并解决了该问题.

I noticed that the number of repeating image sections (15) correlated with the default "slices" setting in. I changed it to 1 and it solved the issue.

$('#slider').nivoSlider({
            effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
            slices: 1 // For slice animations
});

这篇关于IE中的Nivo滑块显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆