How css hides the top border of a table
This article mainly explains the "css how to hide the top border of the table", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "css how to hide the top border of the table" bar!
Method: 1, use the "table element {border-top-color:transparent}" statement to set the color of the upper border transparent, and then hide the upper border of the table; 2, use the "table element {border-top-style:none}" statement so that the table element does not have the upper border, that is, hide the upper border of the table.
The operating environment of this tutorial: windows10 system, CSS3&&HTML5 version, Dell G3 computer.
How css hides the top border of a table
1. In css, if you want to hide the top border of the table, you can use the border-top-color property to set the color of the top border of the table to transparent.
Border-top-color is used to set the color of the upper border of an element.
Examples are as follows:
Document table {border-top-color:transparent;} 111 222 333 444 555 666 777 888
Output result:
2. In css, you can also use the border-top-style attribute to style the border on the element.
When the property value is none, the definition element does not have an upper border.
Examples are as follows:
Document table {border-top-style:none;} td {border-top-style:none;} 111 222 333 444 555 666 777 888
Output result:
Thank you for your reading, the above is the content of "css how to hide the border on the table", after the study of this article, I believe you have a deeper understanding of how css hides the border on the table, and the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!