【发布时间】:2014-07-21 13:48:42
【问题描述】:
我试图将以下按钮和文本框与左侧的按钮和右侧的文本框平行放置,我尝试使用跨度和边距,但当前文本框位于按钮下方,我应该怎么做那>
<span>
<input type="submit" id="Connect" style="margin-left: 195px; width: 150px;" class="btn action-but" />
<div class="form-group">
@Html.LabelFor(model => model.Service, new { @class = "col-md-2" })
<div class="col-md-10">
@Html.TextBoxFor(model => model.Service, new { @style = "width: 700px;" })
@Html.ValidationMessageFor(model => model.Service)
</div>
</div>
</span>
【问题讨论】:
-
你能粘贴一个工作演示吗?
-
这是什么语言?
@Html.LabelFor...- 看起来不像纯 html... -
...认为您可能正在寻找这个:getbootstrap.com/components/#input-groups-buttons
-
@webeno-这是剃须刀,就像 html 助手...
-
您在寻找this 输出吗?
标签: html css asp.net asp.net-mvc twitter-bootstrap