大标签小投入

时间:2018-12-10 21:59:56

标签: html css twitter-bootstrap-3

我正在构建具有许多冗长形式(每个〜30个字段)的Web应用程序。许多字段的标签名称很长,我希望输入字段简短。我正在将这些字段安排成每行3-5个字段的行。

一个示例,我希望标签溢出到表单字段之间的附加空白而不是包装文本:

enter image description here

代码:

<div class="col-md-2">
@Html.LabelFor(model => model.Oopmaxind, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.Oopmaxind, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Oopmaxind, "", new { @class = "text-danger" })
</div>

或者,如果有人举了一个设计典雅,带有长标签和许多字段的表格示例,请分享。

谢谢!

0 个答案:

没有答案