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 MVC架構是什麼?認識 Model-View-Controller 軟體設計模式 2021 年 4 月 26 日 Delegate & Event 2021 年 5 月 24 日 C# virtual method new override 區別 2021 年 7 月 15 日 發佈留言 取消回覆CommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) 在瀏覽器中儲存顯示名稱、電子郵件地址及個人網站網址,以供下次發佈留言時使用。