1) 如果在页面上操作:
<label id="label1" style="display:block; text-align:justify;"></label>
2) 如果在后台操作:
Label label1= new Label();
label1.Text = "";
label1.Style.Add(HtmlTextWriterStyle.Display, "block");
label1.Style.Add(HtmlTextWriterStyle.TextAlign, "justify");
文本框控件也是一样的:
<asp:TextBox ID="txtUser" runat="server" Style="display: block; text-align:justify;"></asp:TextBox>