.container { width:550px; height:400px; border:1px solid #ccc; display:flex; justify-content:space-around; flex-wrap:wrap; align-items:center; margin:0 auto; } .container div { width:100px; height:100px; line-height:100px; text-align:center; border:1px solid black; } .first { width:100px; height:100px; margin:100px auto 20px; }
点击全选颜色变,再点击换背景颜色呀