当前位置: 代码迷 >> ASP >> 表格布局控制解决方案
  详细解决方案

表格布局控制解决方案

热度:4   发布时间:2012-03-20 14:01:11.0
表格布局控制
请问在表格布局页面的时候,宽度大于设置的宽度时,为什么会拉大,例如下面的表格的第一个td   宽度为280,当填写的数据的宽度大于280的时候,会拉大,怎样可以设置不拉大表格的宽度?先谢谢啦!
<table   align= "center "   cellpadding= "0 "   cellspacing= "0 "   width= "760 ">
<tr>
<td   width= "280 "> leftleftleftleftleftleftleftleftleftleftlefttleftleftleftleftleftleftleftleftleftleft </td>
<td   width= "480 ">
        ightrightrightrightrightrightrighthtrightrightrightrightrightrightright
</td>
</tr>
</table>


------解决方案--------------------
<table align= "center " cellpadding= "0 " cellspacing= "0 " style= "width:760px;word-break:break-all; ">
<tr>
<td width= "280 "> leftleftleftleftleftleftleftleftleftleftlefttleftleftleftleftleftleftleftleftleftleft </td>
<td width= "480 "> ightrightrightrightrightrightrighthtrightrightrightrightrightrightright </td>
</tr>
</table>
------解决方案--------------------
楼上可以解决,其实这样输入(连续英文没空格)一般不会发生,可以不必处理。
  相关解决方案