02-表格标签
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>表格标签</title> </head> <style> table{ border: 1px solid black; width: 600px; border-collapse: collapse; /* 合并边框 */ } th{ border: 1px solid black; text-align: center; font-weight: bold; } td{ border: 1px solid black; text-align: center; } </style> <body> <table> <tr> <!--<th>标签是表头单元格,样式加粗显示--> <th>序号</th> <th>品牌LOGO</th> <th>品牌名称</th> <th>企业名称</th> </tr> <tr> <td>1</td> <td><img src="https://img2.baidu.com/it/u=302386661,2377336480&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1705510800&t=8c8a246ea7cc1e7036b32171c3bc6cd8" width="100px"></td> <td>华为</td> <td>华为技术有限公司</td> </tr> <tr> <td>2</td> <td><img src="https://img1.baidu.com/it/u=473254275,2028046032&fm=253&app=138&size=w931&n=0&f=PNG&fmt=auto?sec=1705510800&t=867f0753eeb35d9d700ec6d0b403a554" width="100px"></td> <td>小米</td> <td>小米科技有限公司</td> </tr> </table> </body> </html>