Change width of select tag in Twitter Bootstrap

2020-02-07 19:37发布

How do I change the width of a select field, when using Twitter bootstrap? Adding input-xxlarge CSS classes doesn't seem to work (like it does on other form elements), so the elements in my drop down are currently cut off.

7条回答
Animai°情兽
2楼-- · 2020-02-07 20:20

In bootstrap 3, it is recommended that you size inputs by wrapping them in col-**-# div tags. It seems that most things have 100% width, especially .form-control elements.

https://getbootstrap.com/docs/3.3/css/#forms-control-sizes

查看更多
登录 后发表回答