我試圖應用過渡屬性,以便在圖像在懸停時發生變化時產生效果,但似乎不起作用。請看看並幫助我。DIV的背景圖像變化的CSS過渡
.ow-outer {
background-color: #fff;
width: 200px;
height: 200px;
border-radius: 50%;
border: 1px solid #fff;
text-align: center;
padding: 20px;
background-image: url(../images/team-canada-light.png);
background-size: 120px;
background-repeat: no-repeat;
background-position: center;
transition: all 0.3s ease-in-out;
}
.ow-outer:hover {
background-image: url(../images/team-canada.png);
}
代碼中沒有轉換。告訴我們你試過的東西,不要指望我們爲你寫東西。 – junkfoodjunkie
as @junkfoodjunkie said,no code = no answers –
哦,是的!我的壞..更新... –