Divs vs tables for tabular data

前端 未结 6 1577
悲哀的现实
悲哀的现实 2020-12-06 12:21

Yes, another divs vs tables questions...

I read all over the place that \"try to use divs instead of tables\", but I have an application that displays data that is t

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 12:37

    There is nothing wrong with tables correctly marked with CSS. For tabular data, tables are natural choice, don't try to emulate them using divs; except in few cases where divs can be cleaner.

    Divs and tables are both just tools at your disposal. Learn when to apply right tool for the right job.

提交回复
热议问题