gpt4 book ai didi

javascript - 删除导航和横幅之间的空白

转载 作者:太空宇宙 更新时间:2023-11-04 04:42:20 25 4
gpt4 key购买 nike

如何减少导航栏和横幅之间的空白.....我减少了填充和边距,但它没有受到影响....在下面提供我的代码......

<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#" style="padding-top: 0px;">
<img alt="change" class="defieLogo" src="http://www.defie.co/designerImages/defie_logo_only.png">
</a>
<div class="nav-collapse collapse" style="height: 0px;">
<ul class="nav">
<li class="active"><a href="/docs/examples/product.html">Product</a></li>
<li><a href="/docs/examples/solution.html">Solutions</a></li>
<li><a href="/docs/examples/service.html">Services</a></li>
<li class="iphonePartnerLink"><a href="/docs/examples/partner.html">Partners</a></li>
<li class="iphoneContactLink"><a href="/docs/examples/contact.html">Contact</a></li>
</ul>

<ul class="nav" id="navSecond">
<li class=""><a href="/docs/examples/partners.html">Partners</a></li>
<li><a href="/docs/examples/contact.html">Contact</a></li>
</ul>
<form class="navbar-form pull-right">
<input class="span2" type="text" placeholder="Email">
<input class="span2" type="password" placeholder="Password">
<button type="submit" class="btn">Sign in</button>
</form>
</div><!--/.nav-collapse -->
</div>
</div>
</div>

最佳答案

navbar .navbar-inner {
background: #fff;
color: #000;
box-shadow: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
text-shadow: none;
padding: 20px 0 10px; <--- remove this
}

关于javascript - 删除导航和横幅之间的空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15211218/

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