【问题标题】:How can I show a label with select2 in bootstrap 3 form-horizontal mode?如何在 bootstrap 3 form-horizo​​ntal 模式下使用 select2 显示标签?
【发布时间】:2013-12-27 01:26:56
【问题描述】:

请看这个 jfiddle - http://jsfiddle.net/3wZ4y/2/

    <div class="form-group">
    <label class="control-label" for="select02">Select 02</label>
        <div class="col-xs-4">
        <input type="hidden" id="select02" style="width: 100%" />
        </div>
    </div>

由于某种原因,我无法强制标签出现在 select2 下拉控件的左侧。相反,它出现在右侧!

谢谢。

【问题讨论】:

    标签: twitter-bootstrap


    【解决方案1】:

    试试这个:http://jsfiddle.net/fc1qevem/1/

    <div class="form-group">
        <label for="skill" class="col-sm-2 control-label">Skill</label>
        <div class="col-sm-10">
            <input id="select02" style="width: 100%"></input>
        </div>
    </div>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-10
      • 1970-01-01
      • 1970-01-01
      • 2014-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多