好了,我不明白为什么这不能缓解,只能是:(快速浏览,只需将其粘贴到http://htmledit.squarefree.com,例如)CSS过渡渐出不工作
<style>
#over {
background: url(http://th01.deviantart.net/fs71/150/f/2013/005/0/6/dal_shabet__have__don_t_have_by_awesmatasticaly_cool-d5qkzu8.jpg);
height:150px;
width:150px;
}
#in {
background: url(http://www.mygrafico.com/images/uploads/thumbs/thumb_revidevi_CoolMonsterTruck.jpg);
height:150px;
width:150px;
}
#in:hover {
opacity: 0;
transition: opacity .3s ease-in-out;
}
</style>
<div id="over">
<div id="in"></div
</div>
为了澄清他人,你在'#in:hover'中放置'opacity:0;'并将过渡移到'#in'。 – AJP
正确。我已经更新了我的答案。 – welbornio
漂亮,通过谷歌在15秒内发现并在25秒后解决了问题 – franklinexpress