September 12th, 2007 by Bruce Dou Views:94
<style type=”text/css”>
#example{color:red ;}/*firefox*/
* html #example{color:blue;}/*ie6*/
*+html #example{color:green;}/*ie7*/
</style>
<div id=”example”>在FireFox下应为红色,在IE6.0下应为蓝色,在IE7.0下应为绿色。</div>
Also see:
Tags: css, hack
This entry was posted
on Wednesday, September 12th, 2007 at 4:45 am and is filed under Frontend Design.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.