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# 使用委派實作事件 2021 年 12 月 12 日 C# 隨機傳回 List 中的元素 2021 年 5 月 23 日 讓 ASP.NET Core 也能改完 cshtml 立即看結果 2021 年 6 月 2 日 發佈留言 取消回覆CommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) 在瀏覽器中儲存顯示名稱、電子郵件地址及個人網站網址,以供下次發佈留言時使用。