The best CSS border-spacing property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Values,related articles,
Set the table padding:
border-spacing property to set the distance between the borders of adjacent cells (only for the "separated borders" model).
Defaults: | not specified |
---|---|
inherit: | no |
version: | CSS2 |
JavaScript syntax: | object object.style.borderSpacing = "15px" |
All major browsers support border-spacing property.
Note that IE8 need to define!DOCTYPE. Only support border-spacing property.
值 | 描述 |
---|---|
length length | 规定相邻单元的边框之间的距离。使用 px、cm 等单位。不允许使用负值。
|
inherit | 指定应该从父元素继承border - spacing属性的值 |
CSS tutorial: CSS the Table