【发布时间】:2016-01-21 11:51:12
【问题描述】:
我正在我的样式表中创建一些过渡,并且我有这个 css,但是当我验证它here 时,我收到了有关语法的警告。
css 是这样的:
a:after {
content: '';
height: 2px;
margin: 0 auto;
display: block;
position: relative;
background: #b8d5e5;
opacity: 0;
transition: opacity .25s, -webkit-transform .25s;
transition: opacity .25s, transform .25s;
-webkit-transform: translateY(10px);
-ms-transform: translateY(10px);
transform: translateY(10px);
}
a:hover:after {
opacity: 1;
transition: opacity .25s, -webkit-transform .25s;
transition: opacity .25s, transform .25s;
-webkit-transform: translateY(2px);
-ms-transform: translateY(2px);
transform: translateY(2px);
}
它似乎工作正常 - 至少在 Chrome 中,但我需要更改什么才能修复语法?
【问题讨论】:
-
这些警告只是告诉你验证器不理解浏览器前缀。没什么好担心的。
标签: css css-transitions