北京网站建设服务公司,订单系统单页面网站怎么做,夺宝网站建设,广东圆心科技网站开发建站教程详解通常在 HTML / CSS中,如果要将占位符文本添加到文本框,则只需执行以下操作#xff1a; input type “text”class “input-class”placeholder “请输入您的电子邮件”/ 但是因为我正在使用为Visual Studio MVC 4中的登录面板提供的现有代码#xff1a; /Views/Acco… 通常在 HTML / CSS中,如果要将占位符文本添加到文本框,则只需执行以下操作 input type “text”class “input-class”placeholder “请输入您的电子邮件”/ 但是因为我正在使用为Visual Studio MVC 4中的登录面板提供的现有代码 /Views/Account/Login.cshtml 这是当前呈现输入的C#代码 Html.TextBoxFor(m m.Email, new { class form-input }) Html.ValidationMessageFor(m m.Email, , new { class text-danger }) Html.PasswordFor(m m.Password, new { class form-input }) Html.ValidationMessageFor(m m.Password, , new { class text-danger }) 如何在C#中为此代码添加占位符文本我试过这个 Html.TextBoxFor(m m.Email, placeholder Email new { class form-input }) 它用红色标出“占位符”,称“当前上下文中不存在名称’占位符’”.