2
我爲鼠標懸停使用css不透明度轉換,但是無論何時單擊圖像然後單擊圖像外部(將圖像帶回jquery)css轉換不再起作用。在圖像點擊後失去不透明度轉換
我的CSS過渡
.grid li a:hover img {
-webkit-transition: opacity .2s ease-in;
-moz-transition: opactiy .2s ease-in;
-ms-transition: opacity .2s ease-in;
-o-transition: opacity .2s ease-in;
transition: opacity .2s ease-in;
opacity: 1;
}
.grid:hover li {
-webkit-transition: opacity .2s ease-in;
-moz-transition: opactiy .2s ease-in;
-ms-transition: opacity .2s ease-in;
-o-transition: opacity .2s ease-in;
transition: opacity .2s ease-in;
zoom: 1;
filter: alpha(opacity=100);
opacity: 0.3;
}
而是張貼的代碼敲擊負荷的我想的jsfiddle會更好。