我有一個圓角對話框,在Firefox中可以正常工作,但圓角在IE9中不存在。圓角無法在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;
}
您的邊框半徑規則專門針對Webkit和Firefox。您沒有任何其他瀏覽器的半徑規則。見下面的答案。 – Sparky