Below, the editor will bring you a tip for setting HTML table borders. The editor thinks it is quite good. Now I will share it with you and give you a reference.
For many beginners who are learning HTML, table <table> is the most commonly used tag, but many beginners do not understand the control of table borders.
Generally, when we use a table, we always give it a border attribute, such as: <table border=1>, and the effect is as follows:
For many beginners who are learning HTML, table <table> is the most commonly used tag, but many beginners do not understand the control of table borders.
Generally, when we use a table, we always give it a border attribute, such as: <table border=1>, and the effect is as follows:
However, it seems that the width is not as we imagined: it is only one pixel wide. In fact, what you see above is actually the width of two pixels. Why? This is because the borders between <td> do not overlap. Just modify the border-collapse property of the table.
That is <table border=1px cellpacing=0px>
Add a color to the table, <table border=1px bordercolor=#000000cellspacing=0px>
The above tips for setting HTML table borders are all the content I share with you. I hope you can give you a reference and I hope you can support VeVb Wulin.com more.