<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="2.css">
</head>
<body>
<p>这里是测试文字</p>
</body>
</html>
CSS部分
p{
/*其他浏览器*/
color:#00ff00;
/*IE6*/
_color:#000;
/*IE7*/
*color:#ff0000 !important;
}