Html
    Css
    Js

    
                        
* {
	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
}

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

js水平布局瀑布流

更新时间:2023-02-19 22:42:07

0