2016-06-18 5 views
0

私は角度とブートストラップを使用して着陸を作成します。上記のプライバシー指示では、ui.bootstrap.tabsです。すべては問題ありませんが、クロムに小さなバグがあり、表示されたナビゲーションタブはインラインです。私はサイズ画面SMと、それが右の検索を開始します戻って通常のサイズ(LG) にそれを設定するには、ブラウザのサイズを変更するとナビゲーションバーのためのDOMは

Chromeでnavbarが付いているバグ(UI-Bootstrap)

<div class="landing-navbar hidden-sm hidden-xs"> 
    <div class="container"> 
     <div ng-controller="LandingNavbarCtrl"> 
      <div class="navbar-home-ico col-md-1 col-sm-2 col-xs-5"> 
       <i class="fa fa-home inline cursor" aria-hidden="true"></i> 
       <i class="fa fa-bars inline hidden-md hidden-lg" aria-hidden="true"></i> 
      </div> 
      <div class="col-md-10 hidden-sm hidden-xs"> 
       <div class="col-md-9 middle-tabs"> 
        <uib-tabset active="activeJustified" justified="true"> 
        <uib-tab index="0" heading="Home" template-url="views/templates/tabTemplate.html"></uib-tab> 
        <uib-tab index="1" heading="Solution" template-url="views/templates/tabTemplate.html"></uib-tab> 
        <uib-tab index="2" heading="Projects" template-url="views/templates/tabTemplate.html"></uib-tab> 
        <uib-tab index="3" heading="Blog" template-url="views/templates/tabTemplate.html"></uib-tab> 
        <uib-tab index="4" heading="Services" template-url="views/templates/tabTemplate.html"></uib-tab> 
        <uib-tab index="5" heading="Shop" template-url="views/templates/tabTemplate.html"></uib-tab> 
        <uib-tab index="6" heading="About" template-url="views/templates/tabTemplate.html"></uib-tab> 
        <uib-tab index="7" heading="Contact" template-url="views/templates/tabTemplate.html"></uib-tab> 
        </uib-tabset> 
       </div> 
       <div class="col-md-2 col-md-offset-1 col-xs-12 right-tabs"> 
        <div class="pull-right"> 
         <uib-tabset active="activeJustified" justified="true"> 
          <uib-tab index="8" heading="fa fa-twitter" template-url="views/templates/socialTabsTemplate.html"></uib-tab> 
          <uib-tab index="9" heading="fa fa-facebook" template-url="views/templates/socialTabsTemplate.html"></uib-tab> 
          <uib-tab index="10" heading="fa fa-gitlab" template-url="views/templates/socialTabsTemplate.html"></uib-tab> 
          <uib-tab index="11" heading="fa fa-vk" template-url="views/templates/socialTabsTemplate.html"></uib-tab> 
         </uib-tabset> 
        </div> 
       </div> 
      </div> 
      <div class="navbar-search-ico col-md-1 col-xs-6 col-xs-offset-1 col-sm-offset-4 col-md-offset-0"> 
       <i class="fa fa-search pointer" aria-hidden="true" ng-click="setVisibility()"></i> 
       <span class="search-input"><input placeholder="Enter your search term..." ng-class="class" /></span> 
      </div> 
     </div> 
    </div> 
</div> 

次に見えます。

When open in chrome

オープン、他のブラウザ(FirefoxやIE)やクロムにリサイズした後、Chromeで開いている:

when open in other browsers (firefox, IE) or after resizing in chrome

を助けてください。ありがとう。

答えて

0

this fiddleを見ると、すべてがこの場合に当てはまるので、CSSを提供する必要があります。しかし、私はその問題が以下の通りであると確信しています。

.navbar .nav > li { 
    float:none; 
    display:inline-block; 
    *display:inline; /* Internet Explorer 7 compatibility */ 
} 
+1

返信ありがとうございます。幅:自動;表示:インライン;表示:インラインブロック; float:left;私の問題を解決する –

関連する問題