我在View中有以下代码。 我想按钮应该位于字段集的末尾,但是它位于顶部,如图所示。
<fieldset>
<legend>tblCategory</legend>
@Html.HiddenFor(model => model.Id)
<div class="editor-label">
@Html.LabelFor(model => model.CategoryName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.CategoryName)
@Html.ValidationMessageFor(model => model.CategoryName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Description)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Description)
@Html.ValidationMessageFor(model => model.Description)
</div>
<input type="submit" value="Save" />
</fieldset>
答案 0 :(得分:0)
将其放入<p>
:
<p>
<input type="submit" value="Save" />
</p>