日期:2014-05-16  浏览次数:20384 次

ie6下为什么会有缝??》。。。
<!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">
  <head>
  <title>fe</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <style type="text/css">
  #left {
  width: 227px;
  height: 500px;
  float: left;
  background: #000;
  }
   
  #right {
  background: #000;
  height: 500px;
  margin-left: 227px;
  }
  </style>
  </head>
  <body>
  <div id="left">
  left
  </div>
  <div id="right">
  right
  </div>
  </body>
</html>

ie6下为什么会有缝??》。。。
谢谢

------解决方案--------------------
将RIGHT绝对定位
------解决方案--------------------
没缝隙了,L@_@K
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">
<head>
    <title> new document </title>
    <meta name="generator" content="editplus" />
    <meta name="author" content="Gao YiXiang" />
    <meta name="email" content="yixianggao@126.com" />
    <meta name="keywords" content="javascript dhtml dom" />
    <meta name="description" content="I love web development." />
    <style type="text/css">
#left
{
    width: 20%;
    height: 500px;
    background-color: #ffff00;
    float: left;
}

#right
{
    width: 80%;
    height: 500px;
    background-color: #00ffff;
    float: left;
}
    </style>
</head>
<body>
<div id="left">
    left
</div><div id="right">
    right
</div>
</body>
</html>