源代码:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> </head> <body> <p>Table with nowrap:</p> <table border="1"> <tr> <th>Month</th> <th style="white-space:nowrap">My Savings for a new car</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$80</td> </tr> </table> <p>Table without nowrap:</p> <table border="1"> <tr> <th>Month</th> <th>My Savings for a new car</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$80</td> </tr> </table> <p><b>Note:</b> You might have to reduce the browser window to see the effect.</p> </body> </html>
运行结果:
Fmpq工具