CSS 参考手册
CSS table-layout 属性
设置表格的布局算法
源代码:
点击运行 »
<!DOCTYPE html> <html> <head> <style> table.ex1 { table-layout: auto } table.ex2 { table-layout: fixed } </style> </head> <body> <table class="ex1" border="1" width="100%"> <tr> <td width="5%">1000000000000000000000000000</td> <td width="95%">10000000</td> </tr> </table> <br> <table class="ex2" border="1" width="100%"> <tr> <td width="5%">1000000000000000000000000000</td> <td width="95%">10000000</td> </tr> </table> </body> </html>
运行结果:
点击运行 »