gpt4 book ai didi

css - Chrome 中导航栏的错误(UI-Bootstrap)

转载 作者:行者123 更新时间:2023-11-28 05:40:45 25 4
gpt4 key购买 nike

我使用 anglular 和 bootstrap 创建我的平台。在上面的隐私指令 ui.bootstrap.tabs 中。一切都很好,但 chrome 中有一个小错误,显示内联导航选项卡。接下来是导航栏的 DOM

 <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>

当我将浏览器的大小调整为 sm-screen 大小,然后将其设置回正常大小 (lg)它开始看起来不错。

在 chrome 中打开时 When open in chrome

在其他浏览器(firefox、IE)中打开或在 chrome 中调整大小后:

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

请帮忙。谢谢。

最佳答案

如果我们看this fiddle我们看到一切都在这种情况下,所以你应该提供你的 CSS。但我过于自信问题出在:

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

关于css - Chrome 中导航栏的错误(UI-Bootstrap),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37900146/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com