我想应用一个 CSS 转换到除了背景位置以外的所有属性。 I tried to do it this way:
.csstransitions a {
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.csstransitions a {
-webkit-transition: background-position 0s ease 0s;
-moz-transition: background-position 0s ease 0s;
-o-transition: background-position 0s ease 0s;
-ms-transition: background-position 0s ease 0s;
transition: background-position 0s ease 0s;
}
首先,我将所有属性设置为转换,然后尝试只覆盖背景位置属性的转换。
然而,这似乎也重置了所有其他属性-所以基本上没有任何转换似乎不再发生。
有没有不列出所有属性的方法?