How can i hide certain table column in a HTML table using CSS

前端 未结 7 1642
长发绾君心
长发绾君心 2021-01-26 18:05

I have a html table which is as follows

col1 c
7条回答
  •  长发绾君心
    2021-01-26 18:40

    Use something like this...

    CSS

    td:nth-child(4), td:nth-child(5), td:nth-child(6), td:nth-child(7)
    {
       display:none;
    }
    

    DEMO

提交回复
热议问题