CSS3 Transition在Firefox中不起作用

时间:2012-07-12 04:52:18

标签: css css3 css-transitions

  

可能重复:
  CSS3 transition of background-image for Firefox not working

首先发布在这里。我已经研究过并且似乎已经接近找到了答案,但也许我只是感到沮丧。

我不能让我的CSS3过渡到背景图像的缓入工作在FF中工作,但它适用于Chrome。

这是我的代码来自jsFiddle:http://jsfiddle.net/hWnf4/

HTML:

<a href="http://example.com" title="" id="logo">
<span id="logoimg"></span></a>​

CSS:

#logo {display:inline-block; padding-top:22px; text-decoration:none;font-family:'YanoneKaffeesatzRegular',"Helvetica", Arial, sans-serif;font-size:3em;margin-bottom:18px;}
#logo:link, #logo:visited {color:#fff;}
#logo:hover, #logo:active {color:#ccc;}
#logoimg {display:inline-block; width:405px; height:220px; background:url('http://www.webdesign-guru.co.uk/icon/wp-content/uploads/black-round-glassy.gif') no-repeat; transition: background .25s ease-in-out; -moz-transition: background .25s ease-in-out; -webkit-transition: background .25s ease-in-out;}
#logoimg:hover {background:url('http://www.webdesign-guru.co.uk/icon/wp-content/uploads/green-round-glassy-button.gif') no-repeat;}​

1 个答案:

答案 0 :(得分:1)