I'm just starting out with WebMatrix and would like to know how to style a @Html.TextBox("email")
and @Html.Password("password")
control?
I've tried (in my CSS file):
.email{
/* styles here */
}
.password{
/* styles here */
}
But that has no effect at all. How can we style these types of controls?
您可以在创建带有匿名类型的文本框时指示要使用的类,例如: @Html.TextBox("Email", null, new { @class="email" })
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.