<!--[if IE]>
<style type="text/css">
#botonHome .contButton p a span{ height:25px; }
#botonHome .contButton p a span input{ position: relative; bottom:5px; }
</style>
<![endif]-->
<!--[if IE 6]>
<style type="text/css">
#botonHome .contButton p a span input{ display: inline; margin:0px; padding:0px; bottom:0px; height:20px; }
</style>
<![endif]-->
最後,我能夠正常顯示所有瀏覽器中的按鈕,但我不想在我的html文件中使用此內聯代碼。我怎樣才能解決這個不同的CSS實現IE只使用CSS。這個IE和IE6破解只有CSS?
是的,但不會IE7也解釋這些句子? –
我已經更新了我的答案。請按照鏈接,你會發現所有你需要的關於這個話題,包括詳細的回答你的問題 – mkk
鏈接幫助,歡呼隊友! –