<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>關于用CSS區分Firefox、IE6、IE7webjx.com</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>