MVC中HTML添加样式

@if (Model.ProjectCategory == "1") { @(new HtmlString("selected")) }

  

原文地址:https://www.cnblogs.com/dushaojun/p/9132084.html