簡單實現,沒有添加額外效果
<div></div>
css代碼
div
{
width:300px;
height:300px;
background:blue;
transition:background 1s;
}
div:hover
{
background:#666;
}
簡單實現,沒有添加額外效果
<div></div>
css代碼
div
{
width:300px;
height:300px;
background:blue;
transition:background 1s;
}
div:hover
{
background:#666;
}