How-to create rounded corners on Table Head only

后端 未结 3 703
攒了一身酷
攒了一身酷 2021-02-05 11:15

I would like to know how to create a rounded corners on a table head only?

Additional detail... I want to have a rouded head of the table the rest of the table is a rect

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 11:40

    The problem is, that you need to make the certain inner elements round.

    So you have to make for the first th and the last th round to get the wished solution.

    table th:first-child{
      border-radius:10px 0 0 10px;
    }
    
    table th:last-child{
      border-radius:0 10px 10px 0;
    }
    

提交回复
热议问题