English 中文(简体)
为什么我的孩子们不是在神学院工作,而是在IE和Fifox工作。
原标题:Why is my css slider not working in chrome but is working in IE and Fifox

Link to my slider that I stripped out of my website: http://users.telenet.be/sphinx1/slider/

I got this slider out of a website where it functions in Chrome but I changed some stuff in the CSS and now it only works with IE and Firefox

在 Chrome检查专员中,我看到,在<条码>签字-迟延:0s;上有一些错误。

#slider {
margin: 00px auto;
width: 500px;
height: 300px;
overflow: hidden;
position: relative;
}
.photo {
position: absolute;
animation: round 16s infinite;
-webkit-animation:round 16s infinite;
-o-animation:round 16s infinite;
-moz-animation:round 16s infinite;
-ms-animation:round 16s infinite;
opacity: 0;
}
@keyframes round{   
25%{opacity:1;}
  40%{opacity:0;}
}
@-webkit-keyframe round{
  25%{opacity:1;}
  40%{opacity:0;}
}
@-o-keyframes round {
  25%{opacity:1;}
  40%{opacity:0;}
}
@-moz-keyframes round{   
  25%{opacity:1;}
  40%{opacity:0;}
}

@-ms-keyframes round{   
 25%{opacity:1;}
  40%{opacity:0;}
}
img:nth-child(4){animation-delay:0s;}
img:nth-child(3){animation-delay:4s;}
img:nth-child(2){animation-delay:8s;}
img:nth-child(1){animation-delay:12s;}

img:nth-child(4){-webkit-animation-delay:0s;}
img:nth-child(3){-webkit-animation-delay:4s;}
img:nth-child(2){-webkit-animation-delay:8s;}
img:nth-child(1){-webkit-animation-delay:12s;}

img:nth-child(4){-moz-animation-delay:0s;}
img:nth-child(3){-moz-animation-delay:4s;}
img:nth-child(2){-moz-animation-delay:8s;}
img:nth-child(1){-moz-animation-delay:12s;}

img:nth-child(4){-ms-animation-delay:0s;}
img:nth-child(3){-ms-animation-delay:4s;}
img:nth-child(2){-ms-animation-delay:8s;}
img:nth-child(1){-ms-animation-delay:12s;}

img:nth-child(4){-o-animation-delay:0s;}
img:nth-child(3){-o-animation-delay:4s;}
img:nth-child(2){-o-animation-delay:8s;}
img:nth-child(1){-o-animation-delay:12s;}
最佳回答

您错过了<代码>@webkit-keyframes上的“s”。

替换

@-webkit-keyframe round{
  25%{opacity:1;}
  40%{opacity:0;}
}

......

@-webkit-keyframes round{
  25%{opacity:1;}
  40%{opacity:0;}
}
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签