【问题标题】:linebreak or new line in the text field of a label in ASP.netASP.net 中标签的文本字段中的换行符或换行符
【发布时间】:2014-02-06 13:15:58
【问题描述】:

如何在 ASP.net 中的标签文本中设置换行符。 HTML 5 中有没有办法解决这个问题

【问题讨论】:

  • 您是否尝试过使用两个单独的标签?

  • 有什么问题?

标签: asp.net html newline line-breaks


【解决方案1】:

这可以通过

来实现
<br />

<asp:Label ID="lblAdmin"  Visible='<%# IsAdmin %>' Font-Names="Time News Roman !important;"     runat="server" style="text-align: left"><br/>(Admin)</asp:Label>

它可以根据需要完美运行

【讨论】:

    猜你喜欢
    • 2012-07-24
    • 2013-11-15
    • 2012-01-02
    • 2011-02-24
    • 1970-01-01
    • 2022-09-27
    • 1970-01-01
    • 2010-09-22
    • 2014-03-11
    相关资源
    最近更新 更多