label中的文字换行显示

<asp:Label ID= "Label1" runat= "server" Height= "280px" Text= "Label" Width= "184px" style= "word-break:break-all;word-wrap:break-word;" BackColor= "AliceBlue" BorderColor= "#8080FF" BorderWidth= "1px" Font-Overline= "false" Font-Underline= "false" Font-Italic= "false" Font-Strikeout= "false"></asp:Label>
在label的属性中加入:style= "word-break:break-all;word-wrap:break-word;"

你可能感兴趣的:(server,asp)