在最外的层中加个<table>里面有几个层就设置相应的几个列,把里面的层分别放到单元格中
这样就只要设置单元格的边距就行了.

解决方案 »

  1.   

    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <style type="text/css">
    <!--
    #one div {
      

  2.   

    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <style type="text/css">
    <!--
    #one div {
    padding: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 6pt;
    margin-left: 0px;
    }
    -->
    </style>
    </head><body><div id="one"><div>1</div><div>2</div>还有几个层</div>
    </body>
    </html>
      

  3.   

    http://community.csdn.net/Expert/topic/5385/5385553.xml?temp=.4618952