css隐藏和显示table的第一列

2018-03-07  本文已影响0人  lijibing

1、显示table的首列

td:first-child {
    display: table-cell;
}

th:first-child {
    display: table-cell;
}

2、隐藏table的首列

td:first-child {
   display: none;
}

th:first-child {
    display: none;
}
上一篇 下一篇

猜你喜欢

热点阅读