asp label居中

https://stackoverflow.com/questions/25245839/align-a-label-to-the-right-using-asp-net

Try something like this:

<div style="text-align:right">
    <asp:Label ID="myLabel" runat="server" Text="Label"></asp:Label>
</div>

设置字体大小,颜色

<div style="margin-left: auto; margin-right: auto; text-align: center;">
    <asp:Label ID="Label3" runat="server" Text="ABC" Font-Bold="true" Font-Size="X-Large"
        CssClass="StrongText"></asp:Label>
</div>
原文地址:https://www.cnblogs.com/chucklu/p/10875638.html