gpt4 book ai didi

html - 菜单下的 Bootstrap 空间

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

请帮忙,我有菜单并使用 bootstrap 来设置它的样式。但是我在菜单下添加了另一个 div,它之间是空格。我在这里发布的只有一半的菜单完整代码在演示中 https://jsfiddle.net/DTcHh/42481/

<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">PIN CLicker</a>
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">

</div>
</div>
</nav>


<div class="col-sm-12" id="statsobal"
style="background:red;">
<span class="upstats1" id="uppins">0</span>
</div>

最佳答案

我所做的更改:

在 html 中

<nav class="navbar navbar-inverse ip">

在 CSS 中

.ip{
#border:3px solid blue;
margin:0;
padding:0;
}

HTML:

<nav class="navbar navbar-inverse ip">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">PIN CLicker</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>
<div class="collapse navbar-collapse" id="myNavbar">


<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="mine.php">Page 1</a></li>
<li><a href="pokus.php">Page 2</a></li>
</ul>

<form action="includes/logout.inc.php" class="navbar-form navbar-right" method="POST">
<button type="submit" class="btn btn-default" name="submit">logout</button>

</form >

<ul class="nav navbar-nav navbar-right">
<li><a href="singup.php"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>

</div>
</div>
</nav>





<div class="col-sm-12" id="statsobal" style="background:red;">
<span class="upstats1" id="uppins">0</span>
<span class="upstats" id="updolar">0</span>
<span class="upstats" id="upticket">0</span>
<span class="upstats" id="upautoclick">0</span>
<span class="upstats" id="uplevel">0</span>
<span id="uptotal">0</span>

</div>

CSS:

.ip{
#border:3px solid blue;
margin:0;
padding:0;
}

关于html - 菜单下的 Bootstrap 空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48731635/

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