CSS关于浏览器兼容性问题 请大家帮我看看 急
iahcn 2009-04-28 02:26:26
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style>
#Test
{
height:5px; /*For Firefox*/
*height:5px; /*For IE7 & IE6*/
_height:5px; /*For IE6*/
background:red;
}
</style>
<div id="Test"></div>
</head>
<body>
<div id="Test"></div>
</body>
</html>
--------------------------
IE7里height是正常的 IE6 height 就不正常 定义的是5PX 看起来最少有20PX