【发布时间】:2013-12-19 10:51:05
【问题描述】:
当我在 css 过渡中使用填充时,webkit 浏览器(safari osx、Chrome osx 和 Chrome 窗口)在每个过渡的开始和结束时都会出现小故障,导致放置在动画元素之后的元素移动 1px .
HTML
test test test <span class="test">Hover me</span> test test test test
CSS
.test{
color:#FFF;
background:#000;
padding:4px 4px 4px 30px;
transition: padding 0.5s linear;
}
.test:hover{
padding:4px 30px 4px 4px;
}
我已经搜索并尝试了各种解决方案,但没有解决这个例子?! CSS transition glitch CSS transition effect makes image blurry / moves image 1px, in Chrome?
(充满可能解决方案的示例:http://jsfiddle.net/QG4QV/18/,但没有任何效果)
【问题讨论】:
标签: css google-chrome webkit css-transitions