2013-12-20 106 views

回答

7

,得透明邊框,改變懸停

.screenshots img { 
    border:5px solid transparent; 
} 
.screenshots img:hover { 
    border-color:#06C; 
} 

Updated fiddle here.

邊框顏色
+1

完美,向你表示感謝! – user1373779

+0

@ user1373779歡迎:) – Hiral

3

你可以給它一個邊境這是透明的和寬度相同不徘徊時:

.screenshots img { 
    border: 5px solid transparent; 
} 

jsFiddle example