Why do my Twitter Bootstrap form fields overflow their well using fluid container?

后端 未结 8 661
自闭症患者
自闭症患者 2021-01-30 21:04

UPDATE: Demo of problem here: http://jsfiddle.net/fdB5Q/embedded/result/

From about 767px to 998px, the form fields are wider than the containing well.

Smaller t

8条回答
  •  清歌不尽
    2021-01-30 21:30

    The input html tags and their corresponding .input-* styles only set the css width. This is by design.

    But adding a css max-width:100% will ensure that too large inputs are kept under control.
    e.g. add this to your Head:

    
    

提交回复
热议问题