【问题标题】:1px chrome error with slider滑块 1px 镀铬错误
【发布时间】:2012-08-20 11:04:16
【问题描述】:

我有一个有趣的错误,它只发生在 Chrome 中......如果你看看这个页面: http://forbrugsforeningen.build.dis-play.dk/Om-Forbrugsforeningen

那么如果你使用滑块,看一下顶部菜单,它在滑动动画期间会跳1px吗?以前从未见过,甚至更奇怪的是,它是页面上的两个独立元素,位于不同的容器中?

滑块的代码是:

if ($jq('.rotator').length) {
    $jq('.flexslider').flexslider({
        animation: "slide",              //String: Select your animation type, "fade" or "slide"
        slideDirection: "horizontal",   //String: Select the sliding direction, "horizontal" or "vertical"
        slideshow: true,                //Boolean: Animate slider automatically
        slideshowSpeed: 7000,           //Integer: Set the speed of the slideshow cycling, in milliseconds
        animationDuration: 400,         //Integer: Set the speed of animations, in milliseconds
        directionNav: true,             //Boolean: Create navigation for previous/next navigation? (true/false)
        controlNav: true,               //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
        keyboardNav: false,              //Boolean: Allow slider navigating via keyboard left/right keys
        mousewheel: false,              //Boolean: Allow slider navigating via mousewheel
        prevText: "Tilbage",           //String: Set the text for the "previous" directionNav item
        nextText: "Frem",               //String: Set the text for the "next" directionNav item
        pausePlay: false,               //Boolean: Create pause/play dynamic element
        pauseText: 'Pause',             //String: Set the text for the "pause" pausePlay item
        playText: 'Afspil slider',               //String: Set the text for the "play" pausePlay item
        randomize: false,               //Boolean: Randomize slide order
        slideToStart: 0,                //Integer: The slide that the slider should start on. Array notation (0 = first slide)
        animationLoop: true,            //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
        pauseOnAction: true,            //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
        pauseOnHover: false            //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
    });
}

【问题讨论】:

  • 您的网站似乎受到 IP 限制。
  • 您的网站显示:- HTTP Error 403.6 - Forbidden The IP address from which you are browsing is not permitted to access the requested Web site.
  • +1... HTTP 错误 403.6 - 禁止

标签: jquery html css google-chrome slider


【解决方案1】:

滑块内的图像元素的位置应设置为相对。

#slider li img {
position: relative;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-10
    • 2017-12-23
    • 2020-12-30
    • 2011-09-15
    • 2023-04-10
    • 1970-01-01
    • 1970-01-01
    • 2013-10-26
    相关资源
    最近更新 更多