源代码:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> </head> <body> <table border="1"> <tr> <th></th> <th scope="col">Month</th> <th scope="col">Savings</th> </tr> <tr> <td>1</td> <td>January</td> <td>$100</td> </tr> <tr> <td>2</td> <td>February</td> <td>$80</td> </tr> </table><br><hr><br> <table border="1" style="height:200px"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td valign="bottom">January</td> <td valign="bottom">$100</td> </tr> <tr> <td valign="baseline">February</td> <td valign="baseline" style="font-size:200%">$80</td> </tr> </table> <p><b>注意:</b> HTML5 不支持 valign 属性,可以使用 CSS 代替。</p> </body> </html>
运行结果:
Fmpq工具