Attributes of the internal dividing lines of the tableWhat works is the rules parameter, which has three values (cols, rows, none), When rules=cols, the table will hide the horizontal direction The dividing line, that is, we can only see the columns of the table; When rules=rows, the vertical dividing line is hidden, that is, we can only see the rows of the table; When rules=none, both the vertical and horizontal separators will be hidden, and we can only see the outer frame of a table. Attributes of the external separators of the table The display and hiding of the outer border of the table can be controlled using the frame parameter. Note: It only works on the outer border of the table, not on the internal edges and lines.Only displays the upper border
Believe After reading these cases, you have mastered the methods. For more exciting information, please pay attention to other related articles on the PHP Chinese website! Related reading:
How should HTML tables be laid out
What is the difference between class and id when marking HTML elements
How to achieve the effect of clicking the button text into an input box, and clicking save to turn it into text
The above is the detailed content of How to make Table display borders. For more information, please follow other related articles on the PHP Chinese website!
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