【发布时间】:2015-01-20 19:33:38
【问题描述】:
我什至不确定还能尝试什么。我什至通过了一个 CSS 验证器,它通过了。适用于 Chrome 和 Firefox。 Safari 没有显示任何我可以判断的警告或错误。
相关CSS:
.lines {
width: 32px;
margin: 20px auto;
}
.line-bar {
display: inline-block;
background-color: #f7f7f7;
width: 4px;
height: 18px;
border-radius: 4px;
-webkit-animation: loading 1s ease-in-out infinite;
animation: loading 1s ease-in-out infinite;
}
.line-bar:nth-child(1) {
}
.line-bar:nth-child(2) {
-webkit-animation-delay: 0.09s;
animation-delay: 0.09s;
}
.line-bar:nth-child(3) {
-webkit-animation-delay: 0.18s;
animation-delay: 0.18s;
}
.line-bar:nth-child(4) {
-webkit-animation-delay: 0.27s;
animation-delay: 0.27s;
}
@-webkit-keyframes loading {
0% {
transform: scale(1);
}
20% {
transform: scale(1, 2.2);
}
40% {
transform: scale(1);
}
}
@keyframes loading {
0% {
transform: scale(1);
}
20% {
transform: scale(1, 2.2);
}
40% {
transform: scale(1);
}
}
【问题讨论】: