conditional formatting of html table cells

前端 未结 6 1344
鱼传尺愫
鱼传尺愫 2021-02-04 12:49

Are there any out of the box solutions to have conditional formatting of HTML tables?

With conditional formatting I am more interested in having different colors as cell

6条回答
  •  花落未央
    2021-02-04 13:27

    You could set up some css classes:

    .row { background-color: #00ff00; }
    .alt { backgorund-color: #ff00ff; }
    
    
    <cell contents go here>
    <cell contents go here>

    The jquery option is also simple, but this is how I would do it honestly.

    HTH

提交回复
热议问题