我正在使用MVC5和Bootstrap,我有以下代码,生成一个标签和一个复选框 . 我想将复选框对齐它的div右侧 . 这有引导类吗?或者我如何在CSS中执行此操作?
<div class="form-group">
@Html.LabelFor(model => model.Use_Address, htmlAttributes: new { @class = "control-label col-md-3" })
<div class="col-md-9">
<div class="checkbox">
@Html.CheckBoxFor(model => model.Site.Use_Address, new { id = "checkUseAddress" })
</div>
</div>
</div>
1 回答
在bootstrap中有一个“拉右”类,试试这个 .