Bootstrap 3行太宽,给出水平滚动条

ran*_*own 1 html css twitter-bootstrap twitter-bootstrap-3

如何在不获取水平滚动条的情况下使用表单控件创建一个简单的行?

似乎无论我使用bootstrap 3做什么,任何应该100%的"流体"行实际上超出了它引入水平滚动条的容器.如何阻止它并使其适合其容器?

例:

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12">
            <input type="text" required="" class="form-control" placeholder="Enter something" id="foo" name="foo">
        </div>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

jsfiddle:http://jsfiddle.net/qnb3q40g

Sug*_*h G 5

您的代码在bootstrap 3.2.0中运行良好

DEMO

  • 问题在于您在jsfiddle中使用的3.0.0版本.如果你在Bootply上将BS版本更改为3.0.0,你会看到同样的问题http://www.bootply.com/4CZQvispG5 (4认同)