好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

CSS左边div固定,右边div自适应_html/css_WEB-ITnose

有时候我们会有这样的需求,如图,aside是导航或者某些链接,右边的main是显示重要的内容,左边需要定宽,右边的main能够自适应剩余的宽度:

 

        test                                       *{margin:0; padding:0;}        /* div{border:1px solid #CCC;} */        .home{width:70%; min-width:270px;margin:0 auto;}        .header{height:80px; width:100%; background:#CCC}        .nav{height:50px; width:100%; background:#bbb}        .content{}        .content .aside{width:260px; height:400px; float:left; background:#999}        .content .main{height:400px; margin-left:260px; overflow:hidden;zoom:1; background:#eee}        .footer{height:80px; background:#888;}           

header

查看更多关于CSS左边div固定,右边div自适应_html/css_WEB-ITnose的详细内容...

  阅读:31次