照恩

  1. 设计草案

多个DIV让float:left属性,最后一个DIV填满剩余的部分

<DIV style="border:1px solid red; overflow:hidden;zoom:1;"

    <DIV style='float:left; background:yellow;'>yellow</DIV
    <DIV style='float:left; background:green;'>green</DIV
    <DIV style='float:left; background:blue;'>blue</DIV
    <DIV style='float:left; background:gold;'>gold</DIV
    <DIV style='background:red; _float:left;'><div style="_width:100%;">red</div></DIV
</DIV>
posted @ 2015-07-01 22:51  Jweb2  阅读(762)  评论(0编辑  收藏  举报