diff --git "a/\345\224\220\345\256\207\345\247\227/20241028-flex\345\270\203\345\261\200.md" "b/\345\224\220\345\256\207\345\247\227/20241028-flex\345\270\203\345\261\200.md" new file mode 100644 index 0000000000000000000000000000000000000000..dbef04e2b3ced3b925cf1690d33ddf551fbe9356 --- /dev/null +++ "b/\345\224\220\345\256\207\345\247\227/20241028-flex\345\270\203\345\261\200.md" @@ -0,0 +1,19 @@ +# flex布局 +**弹性盒子、子元素** +- 弹性盒子:指的是`display:flex`或者`display:inline-flex`声明的父容器 +- 子元素/弹性元素:值得是父容器里面的子元素们(父容器被声明为flex盒子的情况下)。 + +**主轴和侧轴** +- 主轴:flex容器的主轴,默认是水平方向,从左向右。 + +- 侧轴:与主轴垂直的轴称作侧轴,默认是垂直方向,从上往下 + +**flex-direction** +|属性值 | 描述| +| -- | -- | +|row |从左到右水平排列子元素(默认值)| +|column |从上到下垂直排列子元素| +|row-reverse |从右向左排列子元素| +|column-reverse| 从下到上垂直排列子元素| + +**justify-content** \ No newline at end of file diff --git "a/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\270\273\350\275\264\345\257\271\351\275\220.html" "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\270\273\350\275\264\345\257\271\351\275\220.html" new file mode 100644 index 0000000000000000000000000000000000000000..03c1a178ece03bc0452183a91375dedeff20f4cb --- /dev/null +++ "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\270\273\350\275\264\345\257\271\351\275\220.html" @@ -0,0 +1,49 @@ + + + + + Document + + + + +
+
+
+
+
+ + \ No newline at end of file diff --git "a/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\270\273\350\275\264\346\226\271\345\220\221.html" "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\270\273\350\275\264\346\226\271\345\220\221.html" new file mode 100644 index 0000000000000000000000000000000000000000..a41900083ea9009a50175ab6c290f6b696868b86 --- /dev/null +++ "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\270\273\350\275\264\346\226\271\345\220\221.html" @@ -0,0 +1,31 @@ + + + + + Document + + + +
+
+
+
+
+ + \ No newline at end of file diff --git "a/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\272\244\345\217\211\350\275\264\345\257\271\351\275\220.html" "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\272\244\345\217\211\350\275\264\345\257\271\351\275\220.html" new file mode 100644 index 0000000000000000000000000000000000000000..8c3a26078b991b2786b2aa5d8b3e4b802b8170cf --- /dev/null +++ "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\272\244\345\217\211\350\275\264\345\257\271\351\275\220.html" @@ -0,0 +1,28 @@ + + + + + Document + + + +
+
+ +
+ + \ No newline at end of file diff --git "a/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\272\244\345\217\211\350\275\264\346\226\271\345\220\221.html" "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\272\244\345\217\211\350\275\264\346\226\271\345\220\221.html" new file mode 100644 index 0000000000000000000000000000000000000000..1c11ddf9af88abd3ce79d297b598c16f0893cbf8 --- /dev/null +++ "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\344\272\244\345\217\211\350\275\264\346\226\271\345\220\221.html" @@ -0,0 +1,33 @@ + + + + + Document + + + +
+
+
+
+
+
+ +
+ + \ No newline at end of file diff --git "a/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\345\237\272\347\241\200\345\270\203\345\261\200.html" "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\345\237\272\347\241\200\345\270\203\345\261\200.html" new file mode 100644 index 0000000000000000000000000000000000000000..6bbd6f58ef5389d30b720e163a412ece4397701a --- /dev/null +++ "b/\345\224\220\345\256\207\345\247\227/\347\273\203\344\271\240and\344\275\234\344\270\232/20241028-flex\347\273\203\344\271\240/\345\237\272\347\241\200\345\270\203\345\261\200.html" @@ -0,0 +1,37 @@ + + + + + Document + + + +
+
one
+
jhcjsdh
+
sdhcsdnj
+
+ + \ No newline at end of file