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>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-07-10
猜你喜欢
  • 2022-12-23
  • 2021-07-19
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案