cshtml Html.DisplayFor 顯示多行 Post author:rovingwind Post published:2021 年 5 月 31 日 Post category:C# / html Post comments:0 Comments 使用 span 區塊包覆並加上 style <span style="white-space: pre-line">@Html.DisplayFor(m => m.MultilineText2)</span> You Might Also Like C# Switch Case 在不同 Case 宣告相同的變數 2021 年 11 月 4 日 C# 編輯 Windows 快速存取清單 2021 年 5 月 23 日 限制有登入才能導向目標 Controller 2021 年 4 月 26 日 發佈留言 取消回覆CommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) 在瀏覽器中儲存顯示名稱、電子郵件地址及個人網站網址,以供下次發佈留言時使用。