如何使用CSS创建带有圆角的背景框?
使用此CSS:
.box_round {
-moz-border-radius: 12px; /* FF1+ */
-webkit-border-radius: 12px; /* Saf3-4 */
border-radius: 12px; /* Opera 10.5, IE 9, Saf5, Chrome */
}
然后在HTML中像这样使用该类:
<div class="box_round" style="background-color:red">This is a test</div>
我添加了 background-color:red 属性,只是为了测试目的,以便您可以看到圆角。
希望这能帮到您。
看看CSS3 PIE项目。它可能会帮助您解决在旧版IE上与CSS3相关的问题。