0
Can anyone tell me why the button is not working? It was meant to show by clicking on it, but for some reason nothing is happening. ( Using the class "Collapse navbar-Collapse" I managed to do what I wanted, the menu, stay hidden, but when calling with the button, it just doesn’t work.
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" type="text/javascript"></script>
<link href="CSS-projeto.css" rel="stylesheet" type="text/css">
<div id="pai" class="row">
<div class="col-xs-12 col-xs-10">
<div class="menu">
<nav>
<div class="navbar-default" id="navbardefault-cor">
<div class="container-fluid">
<img class="img-responsive" id="imagemBBlogo2" src="BBomParaTodos.png" alt="Banco Do Brasil Logo">
<button id="botaoPosicao" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul id="menu" class="nav navbar-nav">
<li class="LogoPosicao"> <img class="img-responsive" id="imagemBBlogo" src="BBomParaTodos.png" alt="Banco Do Brasil Logo"> </li>
<li><a class="Entenda" href="#">ENTENDA</a></li>
<li><a class="SemJuros" href="#">SEM JUROS</a></li>
<li><a class="Quebra">|</a></li>
<li id="telefoneC"><a class="tel" href="#"> <span class="glyphicon glyphicon-earphone"></span> (99) 9999-9999</a></li>
<li id="contatoLI"><a class="Contato" href="#Contato-Site" button type="button" data-toggle="button" aria-pressed="false" autocomplete="off">CONTATO</a></li>
</ul>
</div>
</div>
</div>
</nav>
</div>
</div>
</div>
Just to confirm, the bootstrap was included correctly, right? Javascript and all?
– Oralista de Sistemas
Did you include jQuery as well? In order, first jquery.js after bootstrap.js?
– Guilherme Nascimento
Look, it does, but I’ll run the lines for you to check, this below is inside the <head>
– Lucky
Include in the question the <head> for better visualization
– Lucky