Html
    Css
    Js

    
                        
	.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;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

div全选(原创)

点击全选颜色变,再点击换背景颜色呀

0