User:Selfice/管理员工具箱/styles.css:修订间差异
< User:Selfice | 管理员工具箱
无编辑摘要 |
无编辑摘要 |
||
第9行: | 第9行: | ||
} | } | ||
.list-container > ul{ | .list-container > ul{ | ||
display: | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 自动分配列 */ | |||
gap: 16px; | |||
} | } | ||
.list-container > ul > li { | .list-container > ul > li { | ||
box-sizing: border-box; | |||
border: 1px solid #ddd; | |||
border-radius: 8px; | |||
background-color: #f9f9f9; | |||
} | } |
2025年4月16日 (三) 19:34的版本
.common-box{ padding: 0.2em 0.4em; border: 1px solid #ddd; border-radius: 10px; box-shadow: #666 0 2px 3px; } .list-container { width: 100%; /* 宽度占满父容器 */ } .list-container > ul{ display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 自动分配列 */ gap: 16px; } .list-container > ul > li { box-sizing: border-box; border: 1px solid #ddd; border-radius: 8px; background-color: #f9f9f9; }