單獨給指定的IE瀏覽器寫不同的樣式

html中寫法:
1.

<!--[if IE 6]>
<style type="text/css">
 /* 針對IE6定義的樣式 */
</style>
<![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if lt IE 7]>版本小於IE7將看到這行<![endif]-->
<!--[if lte IE 7]>版本小於或等於IE7將看到這行<![endif]-->
<!--[if IE 7]>版本如果是IE7將看到這行<![endif]-->
<!--[if gt IE 7]>版本大於IE7將看到這行<![endif]-->

引入單獨的css文件

<!--[if IE 6 ]>
<link rel="stylesheet" type="text/css" media="all" href="./ie6.css" />
<![endif]-->
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章