<!--用div做表格布局-->
<!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>div表格布局</title>
</head>
<body topmargin="0px">
<div style="width:1000px; height:600px; background-color:red; margin:auto auto; display:table" >
<div style="width:100%; height:30%; background-color:green; margin:auto auto;display:table-row">
<div style="width:100%; height:30%; background-color:green; margin:auto auto;display:table-cell">
</div>
</div>
<div style="width:100%; height:30%; background-color:blue; margin:auto auto; display:table-row" >
<div style="width:100%; height:40%; background-color:blue; margin:auto auto;display:table-cell">
<div style="width:100%; height:100%; background-color:#996666; display:table">
<div style="width:30%; height:100%; background-color:#FF00Fa; display:table-cell;">
</div>
<div style="width:30%; height:100%; background-color:#Faaffa; display:table-cell;">
</div>
<div style="width:40%; height:100%; background-color:#F0af0a; display:table-cell;">
</div>
</div>
</div>
</div>
<div style="width:100%; height:40%; background-color:red; margin:auto auto; display:table-row" >
<div style="width:100%; height:40%; background-color:red; margin:auto auto;display:table-cell">
</div>
</div>
</div>
</body>
</html>