Twitter bootstrap混合水平形式与内联

sko*_*ine 21 forms twitter-bootstrap

嗨我试图使内联形式混合水平我有http://jsfiddle.net/TNLnP/3/但我想得到类似的东西

<label><input>
<label><input><label><input><label><input>
Run Code Online (Sandbox Code Playgroud)

Roy*_*ove 39

如果你想将两者都放在同一个form元素中,你可以添加form-inlinefieldset:

<form>
<div class="row">
    <fieldset class="form-inline">
        <label class="control-label">A</label>
        <input type="text" class="input-medium">
    </fieldset>
</div><!-- end row -->
<div class="row">
    <fieldset class="form-inline">
        <label class="control-label">B</label>
        <input type="text" class="input-mini" >
        <label class="control-label">C</label>
        <input type="text" class="input-mini" >
        <label class="control-label">D</label>
        <input type="text" class="input-mini" >
        <label class="control-label">E</label>
        <input type="text" class="input-mini" >
    </fieldset>
</div><!-- end row -->
</form>   
Run Code Online (Sandbox Code Playgroud)

http://jsfiddle.net/ZWNjw/