摘要:
浮动本来是用在文字环绕图片,现在却被用来排版,替代很久以前的表格式排版。清除浮动两种方式,一种是在包裹浮动元素的大框加:after,<style type="text/css">.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}.clearfix {display: inline-block;} /* for IE/Mac */ </style><!-- main stylesheet ends, CC 阅读全文