码迷,mamicode.com
首页 > 其他好文 > 详细

在文章高度自适应的时候

时间:2017-09-18 01:11:49      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:table   height   高度   需要   isp   适应   文章   浮动   min   

在文章高度自适应的时候需要设置文章的div的最小高度。min-height:300px;IE6不识别min-height需要设置_height:300px;_height为IE6识别。而且还要为父div也设置一个最小的高度min-height:300px;_height:300px。

如果有浮动的话还要清楚浮动在父DIv中消除浮动。

.fix{
 *zoom:1;
}
.fix:after{
 content: ‘‘;
 clear: both;
 display: table;
}。

在文章高度自适应的时候

标签:table   height   高度   需要   isp   适应   文章   浮动   min   

原文地址:http://www.cnblogs.com/likechou/p/7538896.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!