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

DIV+CSS样式布局
<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">
<!--
#main {
float: left;
height: auto;
width: 904px;
border: 1px solid #FF0000;
}
#left {
float: left;
height: 300px;
width: 600px;
border: 1px solid #00FF00;
}
#right {
float: right;
height: 300px;
width: 300px;
border: 1px solid #0000FF;
}
.left_div {
border: 1px solid #999999;
height: 100px;
}
.rt_div1 {
border: 1px solid #999999;
height: 200px;
}
.rt_div2 {
border: 1px solid #999999;
height: 100px;
}

}
-->
</style>
</head>

<body>
<div id="main">
<div id="left">
     <div id="left_1" class="left_div">left1</div>
        <div id="left_2" class="left_div">left2</div>
        <div id="left_3" class="left_div">left3</div>
    </div>
    <div id="right">
  <div id="rt_1" class="rt_div1">rt1</div>
  <div id="rt_2" class="rt_div2">rt2</div>

</div>
</div>

<table width="200" border="1">
  <tr>
    <td> 11111111</td>
    <td rowspan="2">11111 </td>
  </tr>
  <tr>
    <td>1111 </td>
  </tr>
  <tr>
    <td> 11111</td>
    <td> 1111</td>
  </tr>
</table>
</body>
</html>