當我在帶邊框的CSS邊框半徑放置時,它不能正常工作。如果我刪除邊框,那麼它的工作很好。這個問題在Safari瀏覽器上。查看代碼和附加圖片。邊框半徑在邊界的Safari中不起作用
HTML代碼
<div class="imgclass floatleft">
<a href="indoor1.php">
<img src="images/led/indoor1.jpg" class="img">
<p>Lamps & Bulbs</p></a>
</div>
CSS代碼
.product-spec .imgclass { width:140px; margin-bottom:45px; }
.product-spec .imgclass p { color:#fff; text-align:center; padding-top:5px; font-size:14px; font-family:'calibri'; }
.product-spec .img { width:140px; height:140px; border:2px solid #bf3c30; -webkit-border-radius: 100px; border-radius: 100px;}
你錯過了,我已經改變了,仍然沒有工作-webkit-邊界半徑值 –
「PX」。 –
請參閱此答案和解釋:http://stackoverflow.com/questions/17202128/rounded-cornes-border-radius-safari-issue –