我想创建一个输入框组类似如下:如何使用bootstrap创建输入组?
title1
name: (input text box)
link: (input text box)
remove this title
title2
name: (input text box)
link: (input text box)
remove this title
而且我的CSS是
<div class="control-group">
<label class="control-label"><h3>title1</h3></label>
<label for="inputError" class="control-label">name</label>
<div class="controls">
<input class="field span6" type="text" id="newsLinkTxt_1" />
</div>
</br>
<label for="inputError" class="control-label">link</label>
<div class="controls">
<input class="field span6" type="text" id="newsLink_1" />
</div>
</br>
<button class="btn" id="removeButton" type="button">remove this</button>
</div>
问题是控制标签类将有保证金20,所以在输入框中将剩下20个保证金。然而,title1和按钮将左对齐,我应该使用哪个类按钮和控件组中的标题,或者我需要定制css?由于
你可以做一个jsfiddle吗? – poodle