DIV--左中右布局

<DIV ID="MAIN">
   <div id=left></div>
   <div id=center></div>
   <div id=right></div>
<div id=clear>回车符</div>
</div>
把left的float设置为left,
把right的float设置为right,
把center的float也设置成left; 
把clear的属性写成clear :"both";就可以了,
要设置一个div框把main撑开就行啦

posted on 2012-02-27 21:22 青蛙學堂 阅读(717) 评论(1)  编辑 收藏 引用 所属分类: 軟件布袋網站

评论

# re: DIV--左中右布局 2012-02-27 21:24 yide

<div style= "clear: both">

</div>  回复  更多评论   

只有注册用户登录后才能发表评论。
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

导航

统计

常用链接

留言簿(8)

随笔分类

随笔档案

收藏夹

青蛙学堂

最新评论

阅读排行榜

评论排行榜