圆角在IE9中不起作用

use*_*196 2 html css css3

我有一个圆角对话框在Firefox中工作正常,但在IE9中没有圆角.

我使用以下代码:

            #dialog-box {
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
/* css3 border radius */
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background:#eee;
width: 1000px;
height:900px;
/* make sure it has the highest z-index */
position:absolute;
z-index:5000;
/* hide it by default */
display:none;
}
Run Code Online (Sandbox Code Playgroud)

Eva*_*ski 7

除了webkit和mozilla扩展,您还需要使用"标准化" border-radius属性:

border-radius: 5px;
Run Code Online (Sandbox Code Playgroud)

http://msdn.microsoft.com/library/ff974085.aspx

W3:http://www.w3.org/TR/css3-background/#the-border-radius