Css PhotoGallery不';不要在IE中滚动

Css PhotoGallery不';不要在IE中滚动,css,internet-explorer,Css,Internet Explorer,photobanner不会在IE中滚动,但会在Chrome和Firefox中滚动 我搜索过谷歌,但无法找出问题所在 以下是该页面的链接: 这是一把小提琴: 您不必再添加所有浏览器属性 调用关键帧名称时添加了引号“”,但不应:) 希望有帮助:)在您的问题中包含photobanner CSS和JS/Jquery代码,这样我们可以得到更好的想法。最好的猜测是IE需要一些特定的代码来移动你的小提琴在Chrome中对我不起作用。我删除了“bannermove”中的引号,但它在IE中仍然不起作用。旋转

photobanner不会在IE中滚动,但会在Chrome和Firefox中滚动

我搜索过谷歌,但无法找出问题所在

以下是该页面的链接:


这是一把小提琴:

  • 您不必再添加所有浏览器属性
  • 调用关键帧名称时添加了引号“”,但不应:)

希望有帮助:)

在您的问题中包含photobanner CSS和JS/Jquery代码,这样我们可以得到更好的想法。最好的猜测是IE需要一些特定的代码来移动你的小提琴在Chrome中对我不起作用。我删除了“bannermove”中的引号,但它在IE中仍然不起作用。旋转有效,但滚动不起作用。好吧,糟糕的是,我没有在每个浏览器上进行检查:这在每个浏览器上都有效(IE11)。我编辑了我的答案:)好吧,现在当有人悬停在图像上时,你能使它旋转360度吗。在Chrome和Firefox中,CSS的行为与我想要的完全一样,但在IE中没有。我希望图库可以滚动,当有人悬停在图像上时,它会放大并旋转360度。我想你应该看看www.caniuse.com,看看你是否可以在特定的浏览器上使用你想要的属性:)谢谢你的帮助,这个问题还没有解决。你能看看我上面发布的代码,看看是否有冲突阻止了IE中的滚动吗?
 * {margin: 0; padding: 0;}

body {
    background: url('bg.jpg');
}

#container {
    width: 1000px;
    height: 500px;
    overflow: hidden;
    margin: 50px auto;
    background: url('divback.jpg');
    background-size:1000px 500px;
    position:relative;
}

#header{
    width: 800px;
    margin: 50px auto;
}

#header h1 {
    text-align: center;
    font: 100 60px/1.5 Verdana, Geneva, sans-serif;

}

#header p {
    font: 100 15px/1.5 Verdana, Geneva, sans-serif;
    text-align: justify;
}


.photobanner {
    height: 500px;
    width: 3550px;
    top:15%;
    position:relative;


}

/*keyframe animations*/
.first {
    -webkit-animation: bannermove 30s linear infinite;
       -moz-animation: bannermove 30s linear infinite;
        -ms-animation: bannermove 30s linear infinite;
         -o-animation: bannermove 30s linear infinite;
            animation: bannermove 30s linear infinite;
}



@-moz-keyframes bannermove {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -2125px;
 }

}

@-webkit-keyframes bannermove {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -2125px;
 }

}

@-ms-keyframes bannermove {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -2125px;
 }

}

@-o-keyframes bannermove {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -2125px;
 }

}
@keyframes bannermove {
 0% {
    margin-left: 0px;
 }
 100% {
    margin-left: -2125px;
 }

}

.photobanner {
    height: 233px;
    width: 3550px;
    margin-bottom: 50px;
}

.photobanner img {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.photobanner img:hover {
    -webkit-transform: rotate(360deg) scale(1.5);
    -moz-transform: rotate(360deg) scale(1.5);
    -o-transform: rotate(360deg) scale(1.5);
    -ms-transform: rotate(360deg) scale(1.5);
    transform: rotate(360deg) scale(1.5);
    cursor: pointer;

    -webkit-box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
    box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
}
.photobanner {
    height: 500px;
    width: 3550px;
    margin-left: 0;
}
@-webkit-keyframes bannermove {
 0% { margin-left: 0; }
 100% {  margin-left: -2125px; }
}
@keyframes bannermove {
 0% { margin-left: 0; }
 100% {  margin-left: -2125px; }
}
/*keyframe animations*/
.first { 
    -webkit-animation: bannermove 30s linear infinite;
    animation: bannermove 30s linear infinite; 
}