首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

DIV+CSS式样布局

2012-11-23 
DIV+CSS样式布局html xmlnshttp://www.w3.org/1999/xhtmlheadmeta http-equivContent-Type con

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" 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>

热点排行