首页/style.css

Litwak913留言 | 贡献2022年8月20日 (六) 13:18的版本
/* 新版首页DIV */
#mainpage-body {
    display: grid;
    width: 100%;
    grid-template-areas: "a a b"
                         "c c d"
                         "e e f"
                         "g h i";
    grid-template-columns: 1fr 1fr 1fr;
}

#mainpage-body :nth-child(1) {grid-area: a;}
#mainpage-body :nth-child(2) {grid-area: b;}
#mainpage-body :nth-child(3) {grid-area: c;}
#mainpage-body :nth-child(4) {grid-area: d;}
#mainpage-body :nth-child(5) {grid-area: e;}
#mainpage-body :nth-child(6) {grid-area: f;}
#mainpage-body :nth-child(7) {grid-area: g;}
#mainpage-body :nth-child(8) {grid-area: h;}
#mainpage-body :nth-child(9) {grid-area: i;}