这是一个使用背景图片的解决方法,希望这个解决方案对你有好处:http:
//jsfiddle.net/yucp2/
<style>
#wrapper
{
width: 300px; height: 300px;
border-radius: 300px;
overflow: hidden;
border:solid 10px #000;
background-color: #f30;
z-index:3;
}
#wrapper span
{
width: 300px;
height: 300px;
top:0;
background-color: #cde;
transition: all 0.5s;
z-index:1;
overflow:hidden;
background-image:url(http://www.paixaoeamor.com/arquivos/fotos/A777C.jpg);
background-repeat:no-repeat;
background-size:100% 100%;
display:inline-block;
background-position:center center;
}
#wrapper:hover > span
{
opacity:.5;
background-size:120% 120%;
}
</style>
<div id="wrapper">
<span></span>
</div>