当我尝试为以下选择
调用验证错误时import scala.reflect.io.File
File(".").toAbsolute
site.css包含:
@Html.DropDownListFor( m => m.Customer.MemberShipTypeId, new SelectList(Model.MemberShipTypes,"Id","Name"),"Select Membership Type" ,new{@class = "form-control"})
@Html.ValidationMessageFor(m => m.Customer.MemberShipTypeId)
,打印的元素是:
select.input-validation-error {
border: 2px solid red;
}
任何想法,为什么下拉按钮边框不能标记为红色。