关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

table中cesllspacing与cellpadding的区别

发布时间:2020-03-21 00:00:00

table是什么?它是由一个个cell单元格构成的,在表格中,

中包裹的cell单元格个数!此外,默认table表格在没有添加css样式

9    

的个数取决于每行

10        11            12                单元格113                单元格214                单元格315            16        17    

最后chrome浏览器中,系统默认的表格边框颜色grey,边框间距为2等等

 1 /* user agent stylesheet */ 2         /* table { 3             display: table; 4             border-collapse: separate; 5             border-spacing: 2px; 6             border-color: grey; 7         } */ 8          9 /*         border="1"默认等于border="1px"10         border-top-width: 1px;11         border-right-width: 1px;12         border-bottom-width: 1px;13         border-left-width: 1px; */14         15 /*        bordercolor返回或设置对象的边框颜色16         bordercolor:W3C - String 
17         Specifies the color of the border of the element. Specify either a color name or RGB color code. 
18 */

/template/Home/Zkeys/PC/Static