gpt4 book ai didi

twitter-bootstrap - 边距或填充 Bootstrap 菜单

转载 作者:行者123 更新时间:2023-12-02 04:49:08 24 4
gpt4 key购买 nike

这里我遇到了一个新问题,我的菜单是用 bootsrap 制作的;

问题是左边的边距或填充,菜单与标志和其余内容不对齐;我在 CSS 上尝试了很多修改,但没有成功!

这是页面 http://www.deluxe-art.fr/test/index.html#

这是CSS

.header-top 	{ background-color:#FFF;}

navbar-header { z-index:1000!important;}

/*Disable bar effect of the menu in a small device*/
.navbar-collapse { border:0!important; box-shadow:none!important;}

.navbar-nav > li > a {color:#7a6b66!important; font-size:13px!important; margin-left:0px!important;
-webkit-transition: color .2s ease-in;
-moz-transition: color .1s ease-in;
-o-transition: color .1s ease-in;
transition: color .1s ease-in;}



.navbar-nav > li > a:hover {color:#231815!important;}
.navbar-nav > .active > a {background-color:#fff!important; color:#231815!important;}
.dropdown-menu > ul > li { background-color:#000!important;}
<header>

<nav class="navbar navbar-default header-top">
<div class="container">

<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">MENU</a></li>
<li><a href="#">MENU</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">MENU<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">MENU</a></li>
<li class="divider"></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
</ul>

</li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
</ul>
</div>

</div>
</nav>

</header>

最佳答案

你可以试试

#bs-example-navbar-collapse-1.navbar-nav { margin: 0px 0px 0px -30px; }

关于twitter-bootstrap - 边距或填充 Bootstrap 菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30435724/

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