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

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

I have a html table which is as follows

col1 c
7条回答
  •  误落风尘
    2021-01-26 18:36

    You can use css3 nth child selector, e.g.

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

    jsFiddle here

提交回复
热议问题