亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

How to specify table width and height

Example analysis:

table{width:100%;}

##th,td {height:50px;}

Use the width attribute to set the width of the entire table, and use the height attribute to set the height of each cell.


Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(php.cn)</title> <style> table,td,th { border:1px solid black; } table { width:100%; } th,td { height:50px; } </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