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

后端 未结 8 656
自闭症患者
自闭症患者 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:41

    As indicated by Pavlo in this answer: Twitter Bootstrap: Stop input field extending beyond well

    Using the class input-block-levelin place of the input-xlarge (or other sizes) solves the problem as well.

    0 讨论(0)
  • 2021-01-30 21:41

    For anyone to find

    Html:

    <input class="form-control" placeholder="Threshold Type">
    

    CSS:

    .form-control { box-sizing: border-box; } 
    
    0 讨论(0)
提交回复
热议问题