How does an attribute border-collapse solve the border problem of Table
In this issue, Xiaobian will bring you about a property border-collapse how to solve the border problem of Table. The article is rich in content and analyzed and described from a professional perspective. After reading this article, I hope you can gain something.
The most headache in page making, the border of the form is one of them, I hate to do the form with the border, and today I finally solved this problem.
The border-collapse property is a good solution to a long-standing problem
CSS
The code is as follows:
.table{border: 1px solid #ccc;border-collapse: collapse; width:80%;}.table th,.table td{border: 1px solid #ccc;padding: 10px;}
Html
The code is as follows:
id
author
title
content
classification
001
Tang jiasan
break the sky
Break the sky, break the sky.
fantasy
001
Tang jiasan
break the sky
Break the sky, break the sky.
fantasy
The above is a property border-collapse shared by Xiaobian for everyone. How to solve the border problem of Table? If there is a similar doubt, please refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.