当我在带边框的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 –