User:Selfice/管理员工具箱/styles.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第6行: | 第6行: | ||
} | } | ||
.list-container { | .list-container { | ||
width: 100%; /* 宽度占满父容器 */ | |||
} | } | ||
.list-container > ul{ | .list-container > ul{ | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; /* 允许换行 */ | flex-wrap: wrap; /* 允许换行 */ | ||
gap: | gap: 3px 6px; /* 设置间距 */ | ||
} | } | ||
.list-container > ul > li { | .list-container > ul > li { | ||
flex: 1 1 calc( | flex: 1 1 calc(25% - 16px); | ||
box-sizing: border-box; | |||
padding: 6px; | |||
border: 1px solid #ddd; | |||
border-radius: 6px; | |||
background-color: #f9f9f9; | |||
text-align: center; | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-content: center; | |||
} | } |