For many people who are new to HTML, table <table> is the most commonly used tag, but many beginners do not quite understand how to control the table borders. Generally, when we use a table, we always give it a border attribute, such as: <table border="1">, the effect is as follows: For many people who are new to HTML, table <table> is the most commonly used tag, but many beginners do not quite understand how to control the table borders. Generally, when we use a table, we always give it a border attribute, such as: <table border="1">, the effect is as follows: However, it seems that the width is not as wide as we imagined: only one pixel wide. In fact, what you see in the above picture is actually two pixels wide. 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" cellspacing="0px" > Add a color to the table, <table border="1px" bordercolor="#000000" cellspacing="0px" > The above tips on setting HTML table borders are all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. |
<<: CSS achieves highly adaptive full screen
>>: Tutorial on installing Ceph distributed storage with yum under Centos7
MySQL reports an error when executing multi-table...
HTML Part Copy code The code is as follows: <!D...
First of all, we know that this effect should be ...
Uninstall tomcat9 1. Since the installation of To...
In web projects we often use the timeline control...
For security reasons, Alibaba Cloud Server ECS co...
1. Introduction to Apache Bench ApacheBench is a ...
CSS background image flickering bug in IE6 (backg...
For reference only for Python developers using Ub...
The form elements with visibility=hidden and displ...
Table of contents Basic Selector Extensions Attri...
Ubuntu 18.04, other versions of Ubuntu question: ...
<frameset></frameset> is familiar to e...
Table of contents style scoped style module State...
Compared with fdisk, parted is less used and is m...