1

可能重复:
Firefox 的背景图像的 CSS3 转换不起作用

第一次在这里发帖。我已经研究过,似乎已经接近找到答案,但也许我只是感到沮丧。

我无法让我的背景图像轻松进出的 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;}​
4

1 回答 1

1

我想这会对你有所帮助。

http://oli.jp/2010/css-animatable-properties/#background-image

于 2012-07-12T04:58:33.030 回答