[ASP.NET] 实现Label自动换行

在<Label></Lable>标签外侧添加<pre></pre>:
<PRE><asp:Label id="lblDescription" runat="server" Width="420px"></asp:Label></PRE>

在Page_Load中添加:
this.lblDescription.Style.Add("word-break""break-all");
posted @ 2008-05-19 17:03  Angelo Dell'inferno  阅读(8534)  评论(1编辑  收藏  举报