如果只是ie6不可以用,你可以使用针对ie6的css hack。举个例子吧。你在自己再试试。现在ff下调正常,然后利用在为ff设置的样式下面加"_选择符{样式列表}",这样的形式再在ie6中挑好即可。
<!doctype html public "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="YES!B/S!" />
<meta name="Description" content="This page is from
http://Justinyoung.cnblogs.com" />
<title>CSS/Javascript demo</title>
<style type="text/css">
#test{
height:100px;
width:100px;
border:1px solid navy;
_border:1px solid red;
}
</style>
</head>
<body>
<div id="test">
我想让这个div,在ie6中显示成红边线,而在ff中显示成蓝边线
</div>
</body>
</html>