table cell width issue

前端 未结 3 1363
孤街浪徒
孤街浪徒 2020-12-16 16:54

I have a table with 2 rows where i need varying cell width as


3条回答
  •  独厮守ぢ
    2020-12-16 17:31

    You can use nth:child

    However it will apply to all rows. This will be relative and not absolute.

        tr>:nth-child(6){ 
        width: 20%;
        }
        tr>:nth-child(7){ 
        width: 80%;
        }
    

提交回复
热议问题