Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
モデル クラスにプロパティを持つラベルまたはチェックボックスの css クラスを変更するにはどうすればよいですか。部分ビューを作成するときに、mVC3 でその特定のラベルの css クラスを変更したいだけです。
このようなことができます。
<label class="textlabel">@Html.LabelFor(model => model.Property) :</label>
そのクラスの css を定義します。
.textlabel { font-weight: bold; color: #f8971d; float: right; }