/*子元素浮动,父元素撑开*/ .父元素{ } .父元素:before{ content:""; display:table; } .父元素:after{ content:""; display:table; clear:both; }
/*子元素浮动,父元素撑开*/ .父元素{ } .父元素:before{ content:""; display:table; } .父元素:after{ content:""; display:table; clear:both; }
转载于:https://www.cnblogs.com/zoeeying/p/10368546.html