3 回答

寶慕林4294392
TA貢獻(xiàn)2021條經(jīng)驗(yàn) 獲得超8個(gè)贊
是! 當(dāng)IE9于2011年1月發(fā)布時(shí)。
假設(shè)你想要在所有四個(gè)方面均勻15px:
.myclass { border-style: solid; border-width: 2px; -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius: 15px;}
IE9將使用默認(rèn)值border-radius
,因此請確保在所有樣式中包含調(diào)用邊框半徑的內(nèi)容。然后您的網(wǎng)站將為IE9做好準(zhǔn)備。
-moz-border-radius
適用于Firefox,-webkit-border-radius
適用于Safari和Chrome。
此外:不要忘記聲明你的IE編碼是ie9:
<meta http-equiv="X-UA-Compatible" content="IE=9" />
一些懶惰的開發(fā)者有<meta http-equiv="X-UA-Compatible" content="IE=7" />
。如果該標(biāo)記存在,則border-radius將永遠(yuǎn)不會(huì)在IE中工作。

慕田峪7331174
TA貢獻(xiàn)1828條經(jīng)驗(yàn) 獲得超13個(gè)贊
添加回答
舉報(bào)
0/150
提交
取消