日期:2014-05-17  浏览次数:20615 次

关于用CSS区分Firefox、IE6、IE7

?

 <html>
 <head>
 <title>关于用CSS区分Firefox、IE6、IE7</title>
<style  type="text/css">
#example{color:red ;}/*firefox*/
 * html #example{color:blue;}/*ie6*/
 *+html #example{color:green;}/*ie7*/
</style>
 </head>
<body>
 <div id="example">在FireFox下应为红色,在IE6.0下应为蓝色,在IE7.0下应为绿色。</div>
</body>
 </html> 
?

?