<html>
<head>
<title>css樣式設置</title>
<style>
body
{
width:950px;
}
</style>
</head>
<body>
這裏是一些文字
<br /><br /><br /><br />
<!--[if !IE]><!--> 除IE外都可識別 <!--<![endif]-->
<!--[if IE 6]> 僅IE6可識別 <![endif]-->
<!--[if IE 7]> 僅IE7可識別 <![endif]-->
<!--[if IE 8]> 僅IE8可識別 <![endif]-->
<!--[if IE 9]> 僅IE9可識別 <![endif]-->
</body>
</html>
測試效果
一、Firefox
二、chrome
三、ie6
四、ie7
五、ie8
六、ie9
可以寫在開始的地方,根據瀏覽器不同,調用不同的css
可以說,寫前臺都會因爲各種瀏覽器有些淡淡的憂傷。