<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>DIV布局测试</TITLE>
<style>
div
{
height:150px;
}
div.left
{
width:20%;
float:left;
clear:right;
background-color:#eeeeee;
}
div.center
{
width:50%;
float:left;
clear:right;
background-color:#CCCCCC;
}
div.right
{
width:30%;
float:left;
clear:right;
background-color:#808080;
}
div.both
{
width:100%;
clear:both;
background-color:#696969;
}
</style>
</HEAD>
<BODY>
<div class="left">左侧</div>
<div class="center">中侧</div>
<div class="right">右侧</div>
<div class="both">全行</div>
<div class="left">左侧</div>
<div class="center">中侧</div>
<div class="right">右侧</div>
</BODY>
</HTML>