gpt4 book ai didi

css - 修复了双行导航栏?

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

我想在导航栏中向用户显示 8 个选项,我希望有 2 行,每行 8 个。我希望所有选项都固定在屏幕底部,并且用户能够看到所有选项始终为 8。

目前,我的第二排隐藏在第一排后面?

.navbar-default {
font-family: "Roboto", sans-serif;
background: #f9f9f9;
margin: 0;
padding: 0;
border-top: none;

text-transform: uppercase;
-webkit-box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.08);
-khtml-box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.08);
-moz-box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.08);
-ms-box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.08);
box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.08);
-webkit-transition: all 0.25s ease-out;
-moz-transition: all 0.25s ease-out;
-ms-transition: all 0.25s ease-out;
-o-transition: all 0.25s ease-out;
transition: all 0.25s ease-out;
}

.navbar-default .navbar-nav > li > a {
margin: 0 20px;
padding: 10px 15px;
font-size: 14px;
text-transform: uppercase;
color: #D13030;
font-weight: 700;
letter-spacing: .02em;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
border-radius: 4px;
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-ms-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}

.navbar-default .navbar-nav > li > a:hover {
background-color: #E74C3C;
color: #f9f9f9;
outline: none;
-webkit-transition: background-color 0.15s linear;
-moz-transition: background-color 0.15s linear;
-ms-transition: background-color 0.15s linear;
-o-transition: background-color 0.15s linear;
transition: background-color 0.15s linear;
}
<!-- NAVIGATION BAR -->
<div class="navbar navbar-default navbar-fixed-bottom" role="navigation">
<div class="container text-center">
<div class="row">
<a href="about.html">
<div class="col-sm-3" id="about-tab">About</div>
</a>
<a href="specifying.html">
<div class="col-sm-3" id="about-tab">Specifying</div>
</a>
<a href="market-sectors.html">
<div class="col-sm-3" id="about-tab">Market Sectors</div>
</a>
<a href="about.html">
<div class="col-sm-3" id="about-tab">Shop</div>
</a>
</div>
</div>

最佳答案

看到我在您的 navbar 中找不到 8 选项,但是要将它放在页面底部,您可以使用如下代码。将此添加到您的 navbar-default

.navbar-default {
position:fixed;
bottom:0;
}

关于css - 修复了双行导航栏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37941793/

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