Could you tell me how to use css to realize this kind of diagram?

resolved

Dec.09,2021

this is the navigation switch


< style >

ul{
    width:500px;background:-sharpccc;
    height:50px;
}
li{
    width:120px;height:30px;background:-sharpd7d7d7;float:left;list-style:none;text-align:center;line-height:30px;
    position: relative;
}
li:nth-child(odd){
    background:-sharp595857;
}
li:nth-child(even){
    background:-sharp707070;
}
li:nth-child(odd)::before{
    content:'';
    display:inline-block;
    position:absolute;
    left:0;
    border-width: 15px;
    border-style: solid;
    border-color: -sharp595857 -sharp595857 transparent transparent  ;
}
li:nth-child(odd)::after{
    content:'';
    display:inline-block;
    position:absolute;
    right:-30px;
    border-width: 15px;
    z-index:2;
    border-style: solid;
    border-color:  transparent transparent -sharp595857 -sharp595857 ;
}
li:nth-child(even)::before{
    content:'';
    display:inline-block;
    position:absolute;
    left:0;
    border-width: 15px;
    border-style: solid;
    border-color: -sharp707070 -sharp707070 transparent transparent  ;
}
li:nth-child(even)::after{
    content:'';
    display:inline-block;
    position:absolute;
    right:-30px;
    border-width: 15px;
    z-index:2;
    border-style: solid;
    border-color:  transparent transparent -sharp707070 -sharp707070;
}
.active{
    background:-sharpfff !important;
}
.active::before{
    content:'';
    display:inline-block;
    position:absolute;
    left:0;
    z-index:2;
    border-style: solid !important;
    border-color: -sharpfff !important;
}
.active::after{
    content:'';
    display:inline-block;
    position:absolute;
    right:-30px;
    border-color: transparent transparent -sharpfff -sharpfff !important;
}

< / style >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e588c5-454c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e588c5-454c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?