是否可以删除下面代码中指定的规则的复制粘贴?
animated {
animation: expand .7s;
-moz-animation: expand .7s;
-webkit-animation: expand .7s;
-o-animation: expand .7s;
}
@keyframes expand {
from {height: 502px;}
to {height: 558px;}
}
@-moz-keyframes expand {
from {height: 502px;}
to {height: 558px;}
}
@-webkit-keyframes expand {
from {height: 502px;}
to {height: 558px;}
}
我想在一个地方定义关键帧(“从..到..”代码)