日期:2014-05-17  浏览次数:20749 次

ie6下错位,如何解决?
HTML code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>测试测试测试测试</title>
<style type="text/css">
body,div,pre,form,fieldset,input,textarea,blockquote,th,td,a,p,ul,li,h1,h2,h3{margin:0; padding:0;}
body{color:#333;background-color:#FFF;font-size:14px; font-family:"Microsoft YaHei",Verdana,Tahoma,Arial,SimSun;}
h2 {font-size: 18px;}
#a{padding:20px 0 0;width:1003px; overflow:auto;}
#b{width:680px;float:left;margin:0 0 0 15px;display:inline;}
.p1{margin:10px 0 0;padding:0 0 10px;border-bottom:1px dashed #000;overflow:auto;}
.p2{margin:0 0 5px;height:20px;overflow:hidden;}
.p3{float:left;}
.p4{width:500px;float:right;overflow:auto;}
.p5,.p6{padding:15px 0 0;}
</style>
</head>
<body>

<div id="a">
<div id="b">

<div class="p1">
<h2 class="p2"><a href="/#" >1我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我</a></h2>

<div class="p3">
<a href="/#"><img src="http://s1.hao123.com/global/images/logo_193.png" height="150" width="110"/></a>
</div>

<div class="p4">
<div class="p5">分类:<a href="/#">分类1</a></div>
<div class="p6">标签1:<br/><a href="/#" >标签1</a></div>
</div>
</div>


<div class="p1">
<h2 class="p2"><a href="/#" >2我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我</a></h2>

<div class="p3">
<a href="/#"><img src="http://s1.hao123.com/global/images/logo_193.png" height="150" width="110"/></a>
</div>

<div class="p4">
<div class="p5">分类:<a href="/#">分类1</a></div>
<div class="p6">标签1:<br/><a href="/#" >标签1</a></div>
</div>
</div>


</div></div>
</body>
</html>


------解决方案--------------------
HTML code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>测试测试测试测试</title>
<style type="text/css">
body,div,pre,form,fieldset,input,textarea,blockquote,th,td,a,p,ul,li,h1,h2,h3{margin:0; padding:0;}
body{color:#333;background-color:#FFF;font-size:14px; font-family:"Microsoft YaHei",Verdana,Tahoma,Arial,SimSun;}
h2 {font-size: 18px;}
#a{padding:20px 0 0;width:1003px; overflow:auto;}
#b{width:680px;float:left;margin:0 0 0 15px;display:inline;}
.p1{margin:10px 0 0;padding:0 0 10px;border-bottom:1px dashed #000;overflow:auto; float:left;}
.p2{margin:0 0 5px;height:20px;overflow:hidden;}
.p3{float:left;}
.p4{width:500px;float:right;overflow:auto;}
.p5,.p6{padding:15px 0 0;}


</style>
</head>
<body>

<div id="a">
<div id="b"