Make the rows banded if and only if there are at least 4 rows

A practical problem I encountered in 2016, which I insisted on implementing with pure CSS as long as it was possible. At first it was solved with mathematical logic tricks but later it turned out there was a much simpler solution.

文章来源:

Author:Gee Law’s Blog
link:https://geelaw.blog/entries/banded-table-iff-4-rows/?utm_source=feed&utm_medium=rss