前端项目实战201-react改变样式

.antTable {
   
    :global {
        .ant-table-row .antColumn{
            width: 300px !important;
        }
        .ant-table-row .ant-table-cell:nth-child(n+8){
            padding: 0;
            margin: 0;
            height: 10px;
            >.antChange {
                width: 100px;
                height: 100%;
                line-height: 50px;
                background-color: aqua;
            }
            >.antGray{
                width: 100px;
                height: 100%;
                line-height: 50px;
                background-color: #ccc;
            }
        }
        
           
        
    }
}

posted @ 2022-11-28 19:17  前端导师歌谣  阅读(39)  评论(0)    收藏  举报