.clearfix:after,.clearfix:before { content:""; display:table; } .clearfix:after { clear:both; } * { margin:0; padding:0; } ol,ul { list-style:none; } .zk { background:green; display:block; cursor:pointer; color:white; } .sq { background:red; cursor:pointer; color:white; display:none; } ul { width:400px; height:200px; overflow:hidden; } li { float:left; width:80px; height:80px; margin-bottom:20px; margin-right:20px; background:#999999 }