如何解决css帧keyframes在yuicompressor下压缩问题
@keyframes asideRighta { 0% { opacity: 1; } 100% { opacity: .8; } }
但是在用yuicompressor进行压缩时他会自做主张的把 0%变为0
@keyframes asideRighta { 0{ opacity: 1; } 100% { opacity: .8; } }
方案一:把0%写为from to
@keyframes asideRighta { from{ opacity: 1; } to { opacity: .8; } }
方案二 把0%写为0.00% (试过0.0%都不行)
@keyframes asideRighta { 0.00%{ opacity: 1; } 100% { opacity: .8; } }
转载;http://blog.csdn.net/effevov5/article/details/49512469