Home > Article > Web Front-end > A weird problem with CSS borders! Find the solution! _html/css_WEB-ITnose
My table has border-right: 1px invalid. I don’t know why.
#tb2 td{ border-top: 1px solid; border-bottom: 1px solid; border-left: 1px solid; border-right: 1px solid; border-collapse: collapse; padding-left: 2px; padding-right: 2px;}
<!DOCTYPE HTML><html> <head> <meta charset="gb2312" /> <title></title> <style> table { border-collapse: collapse; } td { border:1px solid red; } </style> </head> <body> <table> <tr> <td>1-1</td> <td>1-1</td> <td>1-1</td> </tr> <tr> <td>1-1</td> <td>1-1</td> <td>1-1</td> </tr> </table> </body></html>
It looks like it is covered.
border: 1px solid #000000;
Set the color
border: 1px solid #000000;
Set the color
1
Me too If you have encountered this kind of situation, you should be covered