一行三列布局

 <!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>Alert</title>
</head>
<script type="text/javascript">

</script>
<style type="text/css">
body{ margin:0; padding:0;}
.l{ float:left; width:200px;}
.r{ float:right; width:200px;}
.c{  margin:0 200px; width:auto;}
</style>
<body>
<div class="l">左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左左</div>

<div class="r">友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友友</div>
<div class="c">中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间</div>
</body>
</html>

posted @ 2009-08-01 15:35  funnyzak  阅读(159)  评论(0编辑  收藏  举报