Specify the th,...LOGIN

Specify the th, td element of a table and add a black border

Example analysis:

##table,th,td{border:1px solid black;}

Use CSS selectors to add black borders to table elements, th elements, and td elements. Next Section

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <style> table,th,td { border:1px solid black; } </style> </head> <body> <table> <tr> <th>姓名</th> <th>年龄</th> </tr> <tr> <td>Peter</td> <td>20岁</td> </tr> <tr> <td>Griffin</td> <td>23岁</td> </tr> </table> </body> </html>
submitReset Code
ChapterCourseware