【发布时间】:2019-02-08 03:31:31
【问题描述】:
我创建了一个表单并使用表格显示它。一个字段Full Name 应该很大,所以我使用了colspan=2,但是如下图所示,编辑器或输入框的大小没有增加。
到目前为止,这是我的代码。请帮我。
<tr>
<td>
<div class="form-group">
@Html.LabelFor(m => m.EmpID, htmlAttributes: new { @class = "control-label col-md-5 first" })
<div class="col-md-7">
@Html.EditorFor(model => model.EmpID, new { htmlAttributes = new { @class = "form-control", disabled = "disabled" } }) @Html.ValidationMessageFor(m => m.EmpID, "", new { @class = "text-danger" })
</div>
</div>
</td>
<td colspan="2">
<div class="form-group">
@Html.LabelFor(model => model.FullName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.FullName, new { htmlAttributes = new { @class = "form-control long-textbox", disabled = "disabled" } }) @Html.ValidationMessageFor(model => model.FullName, "", new { @class = "text-danger" })
</div>
</div>
</td>
</tr>
【问题讨论】:
标签: css twitter-bootstrap html-table textbox size