摘要:
1、order 属性定义项目的排列顺序 .item { order: <integer>; } 2、flex-grow 属性定义项目的放大比例,默认为 0,即如果存在剩余空间,也不放大 .item { flex-grow: <number>;; /* default 0 */ } 3、flex-sh 阅读全文
posted @ 2022-08-21 10:41
学无边涯
阅读(79)
评论(0)
推荐(0)
摘要:
1,align-items: flex-start; 2,align-items: flex-end; 2,align-items: center; 2,align-items: baseline; 2,align-items: stretch; 阅读全文
posted @ 2022-08-21 10:33
学无边涯
阅读(60)
评论(0)
推荐(0)
摘要:
FLEX justify-content 属性项目在主轴上的对齐方式 1,justify-content: flex-start 2,justify-content: flex-end 3,justify-content: center 4,justify-content: space-betwee 阅读全文
posted @ 2022-08-21 10:23
学无边涯
阅读(63)
评论(0)
推荐(0)
摘要:
内容大于盒子宽度 <style type="text/css"> .bigbox{ width: 500px; height: 400px; background:#ff0000; display: flex; flex-direction: row; flex-wrap: nowrap } .sm 阅读全文
posted @ 2022-08-21 10:15
学无边涯
阅读(373)
评论(0)
推荐(0)
摘要:
1,如何让盒子元素横轴排列 flex-direction: row //默认是横轴 flex-direction: row-reverse flex-direction: column flex-direction: column-reverse <style type="text/css"> .b 阅读全文
posted @ 2022-08-21 10:06
学无边涯
阅读(66)
评论(0)
推荐(0)
摘要:
1.Flex布局 display:flex .bigbox{ width: 500px; height: 400px; background:#ff0000; display: flex; } .smallbox{ width: 100px; height: 100px; background: # 阅读全文
posted @ 2022-08-21 09:54
学无边涯
阅读(174)
评论(0)
推荐(0)

浙公网安备 33010602011771号