我的引导导航栏是不折叠时,我单击3栏时,屏幕太小的导航栏。
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">My Site</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Other</a></li>
</ul>
</div>
</div>
</nav>
这是我的链接
<link href="bootstrap-3.3.4/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap-3.3.4/css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
1条答案
按热度按时间2ledvvac1#
需要为移动的设备添加 meta视口。