答案 0 :(得分:0)
您是否在输入字段中添加了“form-control”类? 您的代码应如下所示:
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>