Vertical and Horizontal Headers in a table?

后端 未结 3 788
旧巷少年郎
旧巷少年郎 2021-02-19 13:52

How would I get a table with both horizontal and vertical headers?

So e.g.

         header1 header2 header3 
header1    1        1      1
header2    2          


        
3条回答
  •  醉酒成梦
    2021-02-19 14:14

    Like @UlrichSchwarz said, you can just use instead of in the first column. Using scope, you can make it more semantically descriptive:

    header1 header2 header3
    header 1 1 1 1
    header 2 2 2 2
    header 3 3 3 3

提交回复
热议问题