ITeye博客

CSS OVERFLOW AUTO

雨中伞 · 2010-04-18 18:16 · WEB前端 · Web前端 · Markdown

<style type="text/css"> 
<!-- 
    *{margin:0;padding:0;} 
    body{font:36px bold; color:#F00; text-align:center;} 
    #layout{background:#FF9;} 
#left{float:left;width:20%;height:200px;background:#DDD;line-height:200px;} 
    #right{float:right;width:30%;height:80px;background:#DDD;line-height:80px;} 
    .clr{clear:both;} 
--> 
</style> 

<div id="layout"> 
    <div id="left">Left</div> 
    <div id="right">Right</div> 
    <p class="clr"> 
</div>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。