利用display属性写出表格的布局样式

demo地址:

元素结构:

=========>=======>=======>=================================================></div>

样式:

body {font: 14px/1.5 georgia, simsun, arial;}h1 {px;margin-top: 3em;}ul {;list-style: none;}.table {px solid #ccc; //相当于table标签}.table-caption {;px; //相当于caption标签}.table-column-group {}.table-column {px; //制定对象作为表格列,,相当于col标签}.table-row-group {}.table-row {},{background: #abcdef;}.table-cell {px;}.table-header-group {;}.table-footer-group {}.tianzi{px;background: #abcdef;}.haoli{px;background-color: aqua;}

很多时候项目不让用表格写代码,然后这个就显示出了他强大的功能。

人要想成为生活的主人,不仅要适应生活,而且还要发挥主动性,

利用display属性写出表格的布局样式

相关文章:

你感兴趣的文章:

标签云: