Bootstrap,将输入与标签对齐到没有标签的按钮,垂直形式/非水平 [英] Bootstrap, align input with label to button without label, vertical form / not horizontal
问题描述
我想将输入与标签对齐,到没有标签的按钮,使用 bootstrap v3 和默认表单(表单的垂直布局,而不是水平布局).
预期效果:http://screencast.com/t/b2uwBopW9rW
我设法通过在标签内创建带有不间断空格的标签来解决这个问题,但我想知道是否有更干净、更好的方法来实现这种效果.
jsfiddle 示例:https://jsfiddle.net/r6o5hysk/1/
<div class="row"><div class="col-xs-10"><div class="form-group"><标签>姓名<input type="text" class="form-control"/>标签>
<div class="col-xs-2"><div class="form-group"><标签> <div class="btn btn-danger">删除</div>标签>