Label控件超过页面的宽度的解决办法

    <style type="text/css">
    #content
    {table-layout: fixed;}         
    #content td
        {
        word-break: break-all;
        word-wrap:break-word;
        }
    </style>

<table id="content" >
 <tr>
  <td>
  <asp:Label ID="Label1" runat="server" Text='<%# Server.HtmlDecode(Eval("CommentContent").ToString())%>'></asp:Label>
                      
  </td>
 </tr>

</table>

posted @ 2008-08-30 22:45  戴着脚镣跳舞  阅读(416)  评论(0编辑  收藏  举报