2014-04-23 57 views

回答

2

通過增加邊界半徑與IMG以及解決它。不知道你是否想要。請評論這件事情與否!

a { 
    width: 100px; 
    height: 100px; 
    background: #000; 
    display: block; 
    border: 2px solid #000; 
    border-radius: 50%; 
    overflow: hidden; 
} 
img { 
    max-width: 100%; 
    -webkit-transition: opacity 0.1s linear; 
    -moz-transition: opacity 0.1s linear; 
    -o-transition: opacity 0.1s linear; 
    transition: opacity 0.1s linear; 
    border-radius: 50%; 
} 
img:hover { 
    opacity: 0.5; 
} 
+0

這是一個很好的解決方案,謝謝:) –

+0

歡迎您! :) – Jacob