html5-浮动

#div1{
    background: rgba(255,0,0,0.5);
    width: 250px;
    height: 250px;
    float: right;
}
#div2{
    background: rgba(0,255,0,0.5);
    width: 250px;
    height: 200px;
    float: right;
}
#div3{
    background: rgba(0,0,255,0.5);
    width: 250px;
    height: 175px;
clear: both;
}

posted @ 2017-09-29 20:12  侯伟东  阅读(243)  评论(0编辑  收藏  举报