* { margin:0; padding:0; box-sizing:border-box; } .content { overflow:hidden; width:1920px; margin:0 auto; border:1px solid red; } .long { width:3000px; } .box { float:left; /* height:300px; */ /* line-height:300px; */ text-align:center; background-color:pink; /* margin-bottom:10px; */ /* margin-right:10px; */ } /* 清除浮动 */ .clearfix:after { visibility:hidden; clear:both; display:block; content:"."; height:0 } .clearfix { *zoom:1 }
更新时间:2023-02-19 22:42:07