Changing background cell of table depending on value

前端 未结 4 1392
北海茫月
北海茫月 2020-12-06 17:58

My site reads a XML file that contains information (values) for a data-table. I use CSS to style the table and everything works fine.

To get a better user-experience

4条回答
  •  有刺的猬
    2020-12-06 18:43

    It may be possible to do this using CSS expressions, but this is non-standard and IIRC only works in Internet Explorer. So I'd advise against it.

    Doing this server-side or using JavaScript are your best bets.

提交回复
热议问题