Tips on setting HTML table borders_HTML/Xhtml_Web page production
PHP中文网Original
2016-05-16 16:36:101796browse
The following editor will bring you some tips on setting HTML table borders. The editor thinks it’s pretty good, so I’d like to share it with you now and give it as a reference
For many people who are new to HTML, table
is the most commonly used tag, but for table borders Control, many beginners don’t understand it very well.
Generally when we use a table, we always give it a border attribute, such as:
, the effect is as follows:
For many people who are new to HTML, 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:
, the effect is as follows:
However, it seems that the width is still not what we imagined: only one pixel wide. In fact, what you see in the picture above is actually two pixels wide. Why? This is because there is no border between
Caused by overlap. Just modify the border-collapse attribute of the table,
that is,
and then give the table Add a color,
The above article is about setting up HTML table borders. The tips are all the content shared by the editor. I hope it can give you a reference. I also hope you will support the php Chinese website
Statement:
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