Wrapping HTML table rows in tags

后端 未结 9 1022
难免孤独
难免孤独 2020-12-03 00:55
9条回答
  •  日久生厌
    2020-12-03 01:09

    You could also use display: contents;. This causes the a tags childs to behave like they are a child of the a tags parent.

    In your HTML:

    
          
          
    Column 1 Column 2
    Column 1 Column 2
    Column 1 Column 2

    Support in different browsers should be enough most of the times (see https://caniuse.com/#feat=css-display-contents).

提交回复
热议问题