先上效果图下面附上代码
<! doctype html> <html> <head> <meta charset = utf-8> <title> </title> <style type = text/css> .big {width: 100px; ความสูง: 100px; พื้นหลัง: SkyBlue; 5px;}. หนึ่ง {display: flex; justify-content: center;/*交叉轴*/Align-items: center;}. สอง {display: flex; justify-content: space-uround; align-items: center;}. two 2 {display: flex; Flex; Flex-Direction: คอลัมน์; Justify-content: space-between; align-items: center;}. สี่ {แสดง: Flex; Justify-content: Space-uround;}. Four1 {display: Flex; Justify-content: Space-uround; center;}. ห้า {display: flex; justify-content: space-uround;}. Five1 {display: flex; flex-direction: คอลัมน์; Justify-content: space-uround; การจัดเรียง-รายการ: center;}. ห้า {แสดง: flex; Flex; Flex-Direction: คอลัมน์; Justify-Content: Space-Round; ALIGN-ITEMS: Center;} </style> </head> <body> <div class = big one> <div class = เล็ก> </div> </div> class = small> </div> </div> <div class = Big Three> <div class = small style = Align-self: Flex-start;> </div> <div class = small style = Align-self: center;> </div> <div class = small style = div-self-self-flex-end;> </div> style = align-self: center;> </div> <div class = small style = align-self: flex-start;> </div> </div> <div class = big four> <div class = four2> <div class = เล็ก> </div> <div class = small> </div> </div> <div> <div> ห้า> <div class = five1> <div class = small> </div> <div class = small> </div> </div> <div class = five2> <div class = small> </div> </div> <div class = five1> <div class = small> </div> class = small> </div> <div class = small> </div> </div> <div class = six1> <div class = เล็ก> </div> <div class = small> </div> <div class = small> </div> </div> </div> class = small> </div> <div class = small> </div> </div> <div class = six1> <div class = เล็ก> </div> <div class = เล็ก> </div> </div> </div> </body> </html>总结到此这篇关于 html 使用栅格布局实现六种筛子的样式的代码详解的文章就介绍到这了, 更多相关 html 栅格布局,, 希望大家以后多多支持武林网!