如何使用引导程序呈现列表选择框(下拉列表)? [英] How can I render a list select box (dropdown) with bootstrap?

查看:26
本文介绍了如何使用引导程序呈现列表选择框(下拉列表)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

bootstrap 是否支持呈现常规"事实上的下拉列表选择框?也就是说,下拉框是一个值列表,如果选中则填充列表框的内容?

与此功能类似的东西?

Is there anything out of the box that bootstrap supports to render a "regular" defacto drop down list select box? That is, where the drop down box is a list of values and if selected populate the contents of the list box?

Something similar to this functionality?

http://bootstrapformhelpers.com/select/

解决方案

Bootstrap 3 uses the .form-control class to style form components.

<select class="form-control">
    <option value="one">One</option>
    <option value="two">Two</option>
    <option value="three">Three</option>
    <option value="four">Four</option>
    <option value="five">Five</option>
</select>

http://getbootstrap.com/css/#forms-controls

这篇关于如何使用引导程序呈现列表选择框(下拉列表)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆