Home >Web Front-end >HTML Tutorial >Set the background color of tr. It looks very uncomfortable at the moment_html/css_WEB-ITnose
Setting the cellspacing attribute in the table causes the background color of tr to be intermittent. I wonder if there is a big brother or sister who can add the background color of the gaps
In order to allow me to ask more questions and save some points, haha. By the way, let me ask: How to set the width and height of the html parent container to ensure that the format is not deformed due to the screen size
1. Set the background color of the table
2. Set the width and height of the parent container with specific pixels (px), do not use percentages, so that there is no problem no matter how the screen changes.
1. Set the background color of the table
2. Set the width and height of the parent container with specific pixels (px), do not use percentages, so It doesn't matter how the screen changes.
Remove cellspacing and give tr+ padding attribute
Your description clearly proves that you don’t need cellspacing