.clearfix{*zoom: 1;}
.clearfix:after{content:"";clear:both;display:block;height:0;overflow:hidden;}
.mainBox{width:960px;background-color: #CFF;}
.leftBox,.rightBox{height:300px;}
.leftBox{float:left;width: 740px;background-color: #C9F;}
.rightBox{float:right;width: 210px;background-color: #FCF;}
.clearfix:after{content:"";clear:both;display:block;height:0;overflow:hidden;}
.mainBox{width:960px;background-color: #CFF;}
.leftBox,.rightBox{height:300px;}
.leftBox{float:left;width: 740px;background-color: #C9F;}
.rightBox{float:right;width: 210px;background-color: #FCF;}
大型网站,主流清除浮动方法:浮动元素的父元素 class="clearfix",
css定义 .clearfix:after{ clear:both; content:"."; height:0; overflow:hidden; }
css定义 .clearfix:after{ clear:both; content:"."; height:0; overflow:hidden; }
2017-07-19
大型网站,主流清除浮动方法:浮动元素的父元素 class="clearfix",
css定义 .clearfix{ clear:both; content:"."; height:0; overflow:hidden; }
css定义 .clearfix{ clear:both; content:"."; height:0; overflow:hidden; }
2017-07-19
最新回答 / 被遗忘的高木公
<style type="text/css">a{ margin:5px; padding:5px 10px;}a:link,a:visited{ text-decoration:none; color:#000000;}a:hover,a:active{ background:#F7090D;}</style><body><a href="#">首页</a><<a href="#">1</a><a h...
2017-07-19
em{
background:url(http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg) no-repeat -1px -16px;
width:25px;
height:18px;
display:block;
}
background:url(http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg) no-repeat -1px -16px;
width:25px;
height:18px;
display:block;
}