代码如下:
左右两列高度自适应以及父级div也跟着自适应子级的高度
#container { width:216px; height:auto;overflow: hidden; }
#container div { float: left; width:8px; margin-bottom: -800px; padding-bottom: 800px; }
#container .zuo{ background-image:url(http://HdhCmsTest616sc测试数据/616/f_lm.gif)}
#container .you{ background-image:url(http://HdhCmsTest616sc测试数据/616/f_rm.gif)}
#container .col2 {width:200px;border-bottom:#999999 1px solid}
.clear{clear: both;}
查看更多关于div+css左右两列高度自适应以及父级div也跟着自适应子级的高度_html/css_WEB-IT的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did102685