2016-05-12 28 views
0

下面是我的导航栏应该是:请输入填写导航栏的全部可用空间

enter image description here

正如你可以看到有一个logoloop iconclear iconinput field这需要那些之间的所有空间两个图标(不管分辨率如何)。

这里是我的导航栏现在的样子:

enter image description here

我尝试了好几种不同的aproches与input填补空白而不会破坏响应的功能,但我失败了。

我该如何让input field在每个屏幕上填充这两个图标之间的整个空间?

Here is plunker

+1

您必须使用flexbox ...我将尝试编辑您的plunker – Franky238

+1

示例:http://www.bootply.com/FUOWTa37gL – ZimSystem

回答

0

你能与

<form class="navbar-form"> 
     <div class="form-group" style="display:inline;"> 
      <div class="input-group" style="display:table;"> 
      <span class="input-group-addon" style="width:1%;"><span class="glyphicon glyphicon-search"></span></span> 
      <input class="form-control" name="search" placeholder="Search Here" autocomplete="off" autofocus="autofocus" type="text"> 
      <span class="input-group-addon" style="width:1%;"><span class="glyphicon glyphicon-remove"></span></span> 
      </div> 

     </div> 
     </form> 

取代你的表格我希望它能帮助。