gpt4 book ai didi

html - 在媒体查询中修改我的导航栏。 Bootstrap 3

转载 作者:行者123 更新时间:2023-11-28 10:55:39 25 4
gpt4 key购买 nike

我正在尝试跨媒体查询修改我的导航栏,对于中型和大型屏幕,我的 Logo 是一个超大屏幕 div,但我想更改它在屏幕小于 768 像素时出现的位置,我想把它在我的导航栏上。我可以在我的 css 上制作它吗?

谢谢。

这是我的 md 和 lg 屏幕代码。

 <!-- Jumbotron

============================================= === -->

<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-md-6">
<img src="img/iconos/logo.png">
</div>
<div class="col-md-6 login">
<form class="form-inline" role="form">
<div class="form-group">
<label class="sr-only" for="exampleInputEmail">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail" placeholder="Email">
</div>
<div class="form-group">
<label class="sr-only" for="exampleInputPassword">Password</label>
<input type="password" class="form-control" id="exampleInputPassword" placeholder="Password">
</div>
<div class="form-group">
<button type="button" id="btnlogin" class="btn btn-primary btn-md btn-block">Entrar</button>
</div>
</form>
</div>
</div>
</div>
</div>
 <!-- Navbar

============================================= === -->

<nav class="navbar navbar-default navbar-static-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<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 navbar-ex1-collapse">
<div class="container">
<ul class="nav navbar-nav menu">
<li class="active"><a href="#">INICIO</a></li>
<li><a href="#">WORKSHOPS</a></li>
<li><a href="#">MAESTROS</a></li>
<li><a href="#">BLOG</a></li>
<li><a href="#">ESCAPADAS</a></li>
<li><a href="#">EQUIPAMIENTO</a></li>
</ul>
<ul class="nav navbar-nav pull-right" id="socialicons">
<li class="icon"><a href="#"><img src="img/iconos/face-icon.png" alt=""></a></li>
<li class="icon"><a href="#"><img src="img/iconos/gplus-icon.png" alt=""></a></li>
<li class="icon"><a href="#"><img src="img/iconos/tube-icon.png" alt=""></a></li>
</ul>

</div>
</div><!-- /.navbar-collapse -->
</nav>

最佳答案

这样试试

 <nav class="navbar navbar-default navbar-static-top" role="navigation">

<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">


<div class="col-md-6 hidden-md hidden-lg">
<img src="img/iconos/logo.png">
</div>


<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<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 navbar-ex1-collapse">
<div class="container">
<ul class="nav navbar-nav menu">
<li class="active"><a href="#">INICIO</a></li>
<li><a href="#">WORKSHOPS</a></li>
<li><a href="#">MAESTROS</a></li>
<li><a href="#">BLOG</a></li>
<li><a href="#">ESCAPADAS</a></li>
<li><a href="#">EQUIPAMIENTO</a></li>
</ul>
<ul class="nav navbar-nav pull-right" id="socialicons">
<li class="icon"><a href="#"><img src="img/iconos/face-icon.png" alt=""></a></li>
<li class="icon"><a href="#"><img src="img/iconos/gplus-icon.png" alt=""></a></li>
<li class="icon"><a href="#"><img src="img/iconos/tube-icon.png" alt=""></a></li>
</ul>

</div>
</div><!-- /.navbar-collapse -->
</nav>

关于html - 在媒体查询中修改我的导航栏。 Bootstrap 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22618861/

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