源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <table> <colgroup span="2" style="background:red"></colgroup> <tr> <th>ISBN</th> <th>标题</th> <th>价格</th> </tr> <tr> <td>3476896</td> <td>我的第一个 HTML</td> <td>$53</td> </tr> <tr> <td>5869207</td> <td>我的第一个 CSS</td> <td>$49</td> </tr> </table> </body> </html>
运行结果