IT俱乐部 HTML HTML使用栅格布局实现六种筛子样式的代码详解

HTML使用栅格布局实现六种筛子样式的代码详解

先上效果图下面附上代码





	
		
			.big {
				width: 100px;
				height: 100px;
				background: skyblue;
				display: flex;
				margin-top: 20px;
			} 
			.small {
				width: 10px;
				height: 10px;
				background: purple;
				border-radius: 5px;
			}
			
			.one {
				display: flex;
				justify-content: center;
				/*交叉轴*/
				align-items: center;
			}
			
			.two {
				display: flex;
				justify-content: space-around;
				align-items: center;
			}
			
			.two2 {
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				align-items: center;
			}
			
			.three {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				align-items: center;
			}
			
			.four {
				display: flex;
				justify-content: space-around;
			}
			
			.four1 {
				display: flex;
				justify-content: space-around;
				align-items: center;
			}
			
			.four2 {
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				align-items: center;
			}
			
			.five {
				display: flex;
				justify-content: space-around;
			}
			
			.five1 {
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				align-items: center;
			}
			
			.five2 {
				display: flex;
				flex-direction: row;
				align-self: center;
			}
			
			.six {
				display: flex;
				justify-content: space-around;
			}
			
			.six1 {
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				align-items: center;
			}
		

总结

到此这篇关于HTML使用栅格布局实现六种筛子的样式的代码详解的文章就介绍到这了,更多相关html 栅格布局 内容请搜索IT俱乐部以前的文章或继续浏览下面的相关文章,希望大家以后多多支持IT俱乐部!

本文收集自网络,不代表IT俱乐部立场,转载请注明出处。https://www.2it.club/navsub/html/13522.html
上一篇
下一篇
联系我们

联系我们

在线咨询: QQ交谈

邮箱: 1120393934@qq.com

工作时间:周一至周五,9:00-17:30,节假日休息

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部