我在CSS如下代碼:爲什麼我的Internet Explorer條件格式不起作用?
<!--[if IE 7]>
<style type="text/css">.slider li .slider-content{margin-left:-605px;}</style>
<![endif]-->
<!--[if gte IE 8]>
<style type="text/css">.slider li .slider-content{margin-left:-630px;}</style>
<![endif]-->
我在IE9測試,當我選擇IE8標準模式,並期待在互聯網開發工具,我看到的保證金左認爲:-605px的(而不是 - 630px)
你能想到爲什麼這個代碼在IE8模式下會使用IE7設置嗎?
'important'? –