table中的display

table    { display: table }
tr       { display: table-row }
thead    { display: table-header-group }
tbody    { display: table-row-group }
tfoot    { display: table-footer-group }
col      { display: table-column }
colgroup { display: table-column-group }
td, th   { display: table-cell }
caption  { display: table-caption }
  • table:指定对象作为块元素级的表格。类同于html标签(CSS2)
  • inline-table:指定对象作为内联元素级的表格。类同于html标签(CSS2)
  • table-caption:指定对象作为表格标题。类同于html标签(CSS2)
  • table-cell:指定对象作为表格单元格。类同于html标签(CSS2)
  • table-row-group:指定对象作为表格行组。类同于html标签(CSS2)
  • table-header-group:指定对象作为表格标题组。类同于html标签(CSS2)
  • table-footer-group:指定对象作为表格脚注组。类同于html标签(CSS2)

猜你喜欢

转载自blog.csdn.net/csm0912/article/details/80421558