【发布时间】:2013-01-31 11:19:22
【问题描述】:
我有一个仅适用于 chrome 的简单图像交换过渡。代码:
<a class="twitter" href="index.php"></a>
.twitter {
width:26px;
height:26px;
display:block;
background:transparent url('../images/twitter.jpg') center top no-repeat;
-webkit-transition: all 0.3s linear;
-moz-transition: all 0.3s linear;
-o-transition: all 0.3s linear;
transition: all 0.3s linear;
}
.twitter:hover {background-image: url('../images/twitter-hover.jpg');}
【问题讨论】:
-
你想重现什么样的背景图像转换?一个小提琴来证明它会加快速度。
-
将
transition: all 0.3s linear;置于所有其他浏览器特定的过渡之上,然后重试。 -
它不起作用。这是示例jsfiddle.net/gWKEQ/17
标签: css firefox transitions