Home >Web Front-end >HTML Tutorial >div css: table border spacing attribute border-spacing_html/css_WEB-ITnose

div css: table border spacing attribute border-spacing_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:29:081801browse

The table border spacing attribute (border-sapcing) is used to define the spacing between independent borders in the table. In the table border spacing property, the property value used is the length value. Its syntax is as follows.
border-spacing: length;
**************************************** ******************************
Note: When using the merged display value (collapse) in the table border merge attribute, use the table Border spacing properties will have no effect. IE browser does not support the table border spacing attribute. Only in browsers such as Firefox can the normal effect of spacing be displayed.
**************************************************** *******************
Example: An example of using the table border spacing attribute
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



< title>css attribute example






This is the content part of the table
                                                                                                                                                                                                                                      This is the content part of the table
This is the content part of the table


"
"
" " < ;/tr>
                                                              < ;/tr>
Here is the content part of the tableHere is the content part of the table



The above code defines two tables with two rows and two columns. In the first table, define the border merge attribute value to be displayed independently, and define the table border spacing attribute value to be 20px. In the second table, basically the same properties are defined, except that the value of the table border merge attribute is merged display. In addition, the boundary attribute of the table is defined to separate the tables by a certain distance.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn