How to add border radius on table row

前端 未结 11 1850
南方客
南方客 2020-12-02 06:14

Does anyone know how to style tr as we like?

I\'ve used border-collapse on table, after that tr\'s can display 1px solid border I give them.

However, when I\

11条回答
  •  温柔的废话
    2020-12-02 06:52

    All the answers are way too long. The easiest way to add border radius to a table element that accepts border as a property, is doing border radius with overflow: hidden.

    border: xStyle xColor xSize;
    border-collapse: collapse;
    border-radius: 1em;
    overflow: hidden;
    

提交回复
热议问题