当前位置: 代码迷 >> ASP.NET >> 小弟我的table中的文字没有到右边界就自动换行是咋回事
  详细解决方案

小弟我的table中的文字没有到右边界就自动换行是咋回事

热度:7446   发布时间:2013-02-25 00:00:00.0
我的table中的文字没有到右边界就自动换行是怎么回事?
这个是代码,在vs2005中。


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>无标题页</title>
</head>
<body>
  <form id="form1" runat="server">
  <div>
  <table style="z-index: 100; left: 0px; width: 833px; position: absolute; top: 0px" cellpadding="1" cellspacing="0">
  <tr>
  <td style="width: 72px; height: 173px" valign="top">
  为什么会换行呢,不知</td>
  <td style="width: 227px; height: 173px">
  </td>
  </tr>
  </table>
  <table id="TABLE1" cellpadding="0" cellspacing="0" style="z-index: 104;
  left: 31px; position: absolute; top: 272px; height: 221px" width="1003">
  <tr>
  <td align="right" style="width: 46px; height: 200px"
  valign="top">
  发发生大幅发放的</td>
  <td nowrap="nowrap" style="width: 187px; height: 200px" valign="top">
  标题:<br />
   
  <br />
  内容:发大风 发放的但发发发发发发发发发试试的撒旦发发发发非法反动<br />
   
  </td>
  </tr>
  </table>
   
  </div>
  </form>
</body>
</html>


显示出来就是


发发
生大
幅发
放的


------解决方案--------------------------------------------------------
改為
HTML code
         <table id="TABLE1"  cellpadding="0" cellspacing="0" style="z-index: 104;             left: 31px; position: absolute; top: 272px; height: 221px" width="1003" >              <tr >                  <td align="right"  style="width: 187px; height: 200px"                     valign="top" >                     发发生大幅发放的 </td >                  <td nowrap="nowrap" valign="top" >                     标题: <br / >                                          <br / >                     内容:发大风 发放的但发发发发发发发发发试试的撒旦发发发发非法反动 <br / >                                      </td >              </tr >          </table >
  相关解决方案