首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

表格布局控制解决方案

2012-03-20 
表格布局控制请问在表格布局页面的时候,宽度大于设置的宽度时,为什么会拉大,例如下面的表格的第一个td宽度

表格布局控制
请问在表格布局页面的时候,宽度大于设置的宽度时,为什么会拉大,例如下面的表格的第一个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>
[解决办法]
楼上可以解决,其实这样输入(连续英文没空格)一般不会发生,可以不必处理。

热点排行