繁体   English   中英

如何将 CSS 添加到 HTML 助手 ASP.NET MVC

[英]How to add CSS to HTML helpers ASP.NET MVC

我有一个这样的 HTML 帮手:

<p>@Html.EditorFor(model => model.NameUser)</p>

这是代码运行时:

在此处输入图像描述

我如何向它申请 CSS class? 就像我希望输入背景是蓝色或边框半径 15px

there are three ways for adding css in html 1.) inline CSS eg: 2.) internal CSS eg: under this tag you can use CSS properties 3.) external CSS - create a new file with.CSS extension and then link html and CSS 文件使用 LINKREL 属性。``

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM