In CSS, you can use the "border-color" attribute to set the color of the table box. This attribute is mainly used to set the border color for elements. You only need to add "border-color: color value; "Style is enough.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
How to set the color of the table box in css
In css, you can use the border-color attribute to set the border color of the table table.
border-color property sets the color of the four borders. This property can set from 1 to 4 colors.
The border-color property is a shorthand property that can set the color of the visible parts of all borders of an element, or set different colors for each of the 4 sides.
The following example explains how to set the border color of table with css. The example is as follows:
Document
111 | 222 |
333 | 444 |
555 | 666 |
777 | 888 |
Output result:
(Learn Video sharing:css video tutorial)
The above is the detailed content of How to set the color of css table box. For more information, please follow other related articles on the PHP Chinese website!