如何将CSS类属性添加到剃须刀一个文本框?
-
25-09-2019 - |
题
我曾尝试:
@Html.TextBoxFor(m => m.UserName, new {@class='textbox'})
这是行不通的。
解决方案
@Html.TextBoxFor(m => m.UserName, new {@class="textbox"})
一个C#字符串文字不采取单引号。
'文字框' - > “文本”
不隶属于 StackOverflow
题
我曾尝试:
@Html.TextBoxFor(m => m.UserName, new {@class='textbox'})
这是行不通的。
解决方案
@Html.TextBoxFor(m => m.UserName, new {@class="textbox"})
一个C#字符串文字不采取单引号。
'文字框' - > “文本”