用户:Tokur233/SandBox/styles.css:修订间差异

跳到导航 跳到搜索
用户沙盒页css测试
(Tokur233移动页面用户:Tokur233/styles.css用户:Tokur233/SandBox/styles.css,不留重定向:本来想建在沙盒上的x 但是忘记加sandbox了(跪))
(用户沙盒页css测试)
 
第39行: 第39行:


/* 用户css测试x  copy自萌百*/
/* 用户css测试x  copy自萌百*/
#factions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.5em;
    text-align: center;
    color: white;
}
#factions>div {
    position: relative;
    border-radius: 15px;
    flex: 0 0 25%;
}
@media only screen and (max-width: 1024px) {
    #factions>div {
        flex-basis: 50%;
    }
}
#factions>div:nth-child(1) {
    background: #0062FF;
}
#factions>div:nth-child(1):hover {
    background: #004ABF;
}
#factions>div:nth-child(2) {
    background: #FF0000;
}
#factions>div:nth-child(2):hover {
    background: #BF0000;
}
#factions>div:nth-child(3) {
    background: #7A51A8;
}
#factions>div:nth-child(3):hover {
    background: #5C3D7E;
}
#factions>div:nth-child(4) {
    background: #1C7E80;
}
#factions>div:nth-child(4):hover {
    background: #155F60;
}
#factions .linkspan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#factions a {
    color: white;
}

导航菜单