據我所知,IE9應該有圓角的CSS支持。儘管在IE9中不會出現這種情況,但我顯然是以這種方式編寫了我的頁面 - 儘管它在Chrome和FF中正確顯示。圓角不能在IE9中工作
* 我已經編輯CSS,以反映建議按照下面的答案 - 問題仍然出現* 我需要的頂部和底部的左側角落只爲包含網站主導航在div四捨五入。
'現在激活'按鈕也不起作用,在託管包顯示框中。
網站鏈接以查看http://activehost.co.nz
我檢查了其他的問題 - 而最常見的原因(使用前綴)是不是我做的。
部分的相關CSS如下。
導航:
#main_nav {
margin: 0px 0px 10px 0px;
float: right;
height: 37px;
/*background:url(../img/nav_bg.png);
background-repeat: repeat-x;*/
background-color: #286e38;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#6dc067), to(#286e38));
background-image: -moz-linear-gradient(top, #6dc067, #286e38);
background-image: -ms-linear-gradient(top, #6dc067, #286e38);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #6dc067), color-stop(100%, #286e38));
background-image: -webkit-linear-gradient(top, #6dc067, #286e38);
background-image: -o-linear-gradient(top, #6dc067, #286e38);
background-image: linear-gradient(top, #6dc067, #286e38);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6dc067', endColorstr='#286e38', GradientType=0);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-radius: 20px 0px 0px 20px;
clear: right;
}
併爲「現在激活按鈕的CSS:
.hosting_order {
position: absolute;
top: 148px;
border: none;
height: 35px !important;
background-color: #286e38;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#6dc067), to(#286e38));
background-image: -moz-linear-gradient(top, #6dc067, #286e38);
background-image: -ms-linear-gradient(top, #6dc067, #286e38);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #6dc067), color-stop(100%, #286e38));
background-image: -webkit-linear-gradient(top, #6dc067, #286e38);
background-image: -o-linear-gradient(top, #6dc067, #286e38);
background-image: linear-gradient(top, #6dc067, #286e38);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6dc067', endColorstr='#286e38', GradientType=0);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
color: #ffffff;
width: 120px;
padding: 0px 20px;
font-weight: bolder;
font-size: 1.1em;
border-radius:20px;
box-shadow: 2px 2px #888888;
}
背景圖像CSS是產生漸變效果 - 我不知道這是什麼問題?
這確實是與過濾器的衝突。我會將它們分開並以不同的方式應用CSS。將過濾器線路立即解決問題 - 謝謝! – 2012-02-15 19:28:51
我遇到了一個問題,我的邊框是圓形的,但是白色的漸變背景不是,留下的小角落突出。在同一個元素的IE特定樣式表中應用過濾器解決了這個問題。感謝你! – daddywoodland 2012-05-24 13:11:57