C#学习教程:在MVCASP.NET中为TextBoxFor控件添加glyphicon-user还没有完成,在我展示的代码中(剃刀评论@**@)我试图获取跨度标签glyphicon但没有成功,你能帮我吗@Html.LabelFor(model=>model.usuario,new{@class="control-labelcol-md-2"})@**@@Html.TextBoxFor(model=>model.usuario,new{@class="form-control",@placeholder="Usuario",@type="text"})@**@@Html.ValidationMessageFor(model=>model.usuario)你很接近你只是忘了包含一个类名为input-group的div元素。@Html.LabelFor(model=>model.usuario,new{@class="control-labelcol-md-2"})//缺少div@Html.TextBoxFor(model=>model.usuario,new{@class="form-control",@placeholder="Usuario"})@Html.ValidationMessageFor(model=>model.usuario)你在TextBoxFor中也不需要这个..@type="text"这是Bootply。希望这可以帮助。以上就是《C#学习教程:在MVCASP.NET中为TextBoxFor控件添加glyphicon-user》分享的全部内容。如果对大家有用,需要进一步了解C#学习教程,希望大家多加关注——本文来自网络合集,不代表立场,如涉及侵权,请点击有权联系管理员删除。如需转载请注明出处:
