我有以下 HTML:
@using (Html.BeginForm("Create", "BicycleSellerListing", FormMethod.Post, new { enctype = "multipart/form-data" })) {
@Html.ValidationSummary(true)
<fieldset style="margin:5px;">
<legend>List a Bicycle for Sale</legend>
<div style="display: inline">
<div style="display: inline">
@Html.LabelFor(model => model.BicycleManfacturer)
</div>
<div style="display: inline">
@Html.DropDownList("ManufacturerList")
</div>
<div style="display: inline">
@Html.LabelFor(model => model.BicycleType)
</div>
<div style="display: inline">
@Html.DropDownList("TypeList")
</div>
<div style="display: inline">
@Html.LabelFor(model => model.BicycleModel)
</div>
<div style="display: inline">
@Html.EditorFor(model => model.BicycleModel)
@Html.ValidationMessageFor(model => model.BicycleModel)
</div>
....
....
我无法使标签和编辑字段彼此相邻(通过使用内联)。编辑字段始终显示在标签下方。有谁知道我可能做错了什么?