How to style each table cell in a column via CSS?

前端 未结 6 976
慢半拍i
慢半拍i 2020-12-13 08:22

I have an ordinary HTML table:

6条回答
tag and style it following this guide. This way you only need to add a class (or inline style specification) to the element instead of each tag only supports styling border, background, width and visibility (and their derivatives, such as background-color).
  • The border declaration does not work unless the
  • FAT ...
    in the table.

    Caveats:

    • Any row or cell styling will supersede column styling.
    • The
    has border-collapse: collapse;, and the behavior is inconsistent between browsers.
  • The visibility declaration does not work properly in Chrome due to a known bug.
  • 提交回复
    热议问题