MVC4怎么设置@Html.TextBoxFor这样的输入框的css样式

html-css022

MVC4怎么设置@Html.TextBoxFor这样的输入框的css样式,第1张

12@Html.TextBoxFor(m =>m.byear, new { @class = "aaaa"})@Html.TextBoxFor(m =>m.byear, new { @style = "width:90px"})

最好不要放在view文件夹之内,创建项目时候不是有个content文件夹,底下就有css、Jquery、image这三个文件夹么,你直接放进css文件夹就好了,引用的话,实在不行,在右边选中要调的css直接拖到代码里就会自动生成的