Lock table cells to their default size regardless of content

前端 未结 8 2087
栀梦
栀梦 2021-01-02 13:25

If I have

8条回答
  •  猫巷女王i
    2021-01-02 13:40

    You can also lock the cells to a percentage, in order to maintain responsiveness, eg:

      td:first-child, th:first-child {
        width: 20%;
      }
      // assuming you have 8 remaining columns (20 + 10*8 = 100%)
      td:not(:first-child), th:not(:first-child) {
        width: 10%;
      }
    

提交回复
热议问题