1.ie下用zoom
.autoHeight
{
zoom:1
/*ie下有效 ,触发 hasLayout*/
}
2 用after伪类
.autoHeight:after { content:"."; display:block: clear:both: font-size:0px; line-height:0px; }
1.ie下用zoom
.autoHeight
{
zoom:1
/*ie下有效 ,触发 hasLayout*/
}
2 用after伪类
.autoHeight:after { content:"."; display:block: clear:both: font-size:0px; line-height:0px; }
转载于:https://www.cnblogs.com/dotaZhou/p/3498433.html