先上效果图下面附上代码
<! Doctype html> <html> <ead> <meta charset = utf-8> <tapie> </ title> <style type = text / css> .big {width: 100px; height: 100px; background: skyBlue; affichage: flex; margin-top: 20px;}. 5px;}. Un {affichage: flex; justifier-contenu: centre; / * 交叉轴 * / Align-items: Center;}. Deux {affichage: flex; justifier-contenu: spatial-aound; align-items: Centre;}. Two2 {affichage: flex; flex-direction: Column; Justify-Content: Space-Aring; align-items: Centre;}. flex; flex-direction: colonne; justify-content: spatial-between; align-items: Center;}. quatre {affichage: flex; justify-content: espace-aound;}. quatre1 {affichage: flex; justify-content: space-aound; align-items: central;}. quatre {affichage: flex; flex-irection: colonne; colonne; Space-aound; Align-Items: Center;}. Five {Affichage: Flex; Justify-CONTENT: SPACE-AROUND;}. Five1 {Affichage: Flex; Flex-Direction: Colonne; Justify-CONTENT: SPACE-AROUND; Align-Items: Center;}. Five2 {Affichage: Flex; Flex-Direction: Row; Self: sel Space-aound;}. Six1 {affichage: flex; flex-direction: colonne; justify-contenu: spatial-aound; align-items: Center;} </ div> </ div> <div class = big two> <div class = small> </ div> <v class = small> </ div> <div class = small> </ div> <v class = small> Two2> <div class = small> </ div> <div class = small> </div> </div> <div class = big trois> <div class = small style = align-self: flex-start;> </ div> <div class = small style = align-self: Center;> </div> <div class = small style = align-self: flex-end;> </ div> </div> <v> <div class = Big> <div class = allign = align- div> </div> </ div> <div Class = Big Threat = Small = allign = align: self: self: self: self: self: self: self: self: self: selt: Sweet = allign) flex-end;> </div> <div class = small style = align-self: Center;> </div> <div class = small style = align-self: flex-start;> </div> </div> <div class = big Four> <div Class = Four2> <div class = small> </ div class = small> </v> </v> <v class = Four2> <ving class = small> </v> </v> <div Class = Four2> <div Class = Small> </v> </v> <div Class = Four2> <div Class = Small> </v> </v> <div class = Four2> class = small> </ div> </ div> </ div> <div class = big Five> <div class = Five1> <div class = small> </ div> <div class = small> </ div> </ div class = five = <div class = small> <div class = small> </ div> <div> </ div> <div class = small> </v> <div> </ div Class = small> </v> <div> </ div Class = Small> </v> <vad> <div> <div Class = Small> </v> <Div> </ Div> </ Div> <div Class = Small> </div> Six> <div class = Six1> <div class = small> </ div> <div class = small> </ div> <div class = small> </ div> </ div> <div class = six1> <div class = small> </div> <div class = small> </div> <div class = small> </ div> </ div> </v> <div class = big Six> <div class = six1> <div class = small> <div> <div class = big> <v Class = Six1> <div class = small> <div> <div class = big> <v Class = Six1> class = small> </ div> </ div> <div class = Six1> <div class = small> </ div> <div class = small> </div> </div> <div class = six1> <div class = small> </div> <div class = small> </div> </div> </div> </ body> </html>总结到此这篇关于 html 使用栅格布局实现六种筛子的样式的代码详解的文章就介绍到这了, 更多相关 html 栅格布局 内容请搜索武林网以前的文章或继续浏览下面的相关文章 , 希望大家以后多多支持武林网!