表格宽度用百分比,控制其中td的宽度,并且让td内文字自动换行,代码如下:
<table width="100%" border="1"><tr><tr><td>sdfsdf</td><tr><tr><td style="width:50;word-wrap:break-word;word-break:break-all">sdfsdfsdfsdfdsfdsfdsfdsfsdsdfsdfsdfsdfdsfdsfdsfdsfsdsdfsdfsdfsdfd</td></table>