读书人

关于用CSS界别Firefox、IE6、IE7

发布时间: 2012-11-03 10:57:42 作者: rapoo

关于用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> 
?

?

读书人网 >CSS

热点推荐