应该是将LEFT绝对定位才对。。但是我想知道用浮动有缝的原因

解决方案 »

  1.   

    没缝隙了,L@_@K
    <!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="[email protected]" />
        <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>