我正在制作一个基于引导程序的站点,我不知道我有什么错误,我没有在底部附加bootstrap.min.js和jquery。我无法减少媒体查询中链接的字体大小,并且在汉堡包视图中我点击了Nothing显示的图标。如果JS小提琴,我将添加我的完整脚本,我将在这里附加导航条代码。 https://jsfiddle.net/kxngo67r/1/ 我不知道如何将引导程序添加到jsfiddle
这是我的第一个付费项目,我搞砸了,请告诉我如何更改字体大小以及如何显示链接
HTML
<nav class="navbar navbar-default clearfix">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" 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>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class=""><a href="#">Home<span class="sr-only">(current)</span></a></li>
<li> <a href="aboutus.html"><span style="white-space: nowrap">About Us</span></a> </li>
<li> <a href="whoweare.html"><span style="white-space: nowrap">Who We Are</span></a> </li>
<li> <a href="mission.html">Mission</a> </li>
<li> <a href="activities.html">Activities</a> </li>
<li> <a href="gallery.html">Gallery</a> </li>
<li> <a href="donate.html">Donate</a> </li>
<li> <a href="sitemap.html">Sitemap</a> </li>
<li> <a href="contactus.html"><span style="white-space: nowrap">Contact Us</span></a> </li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
CSS
nav {
width: 100%;
height: 40px;
background: -webkit-linear-gradient(#3f9a15, #388813, #3f9a15, #388813, #3f9a15);
background: -o-linear-gradient(#3f9a15, #388813, #3f9a15, #388813, #3f9a15);
background: linear-gradient(#3f9a15, #388813, #3f9a15, #388813, #3f9a15);
border-radius: 6px !important;
-moz-border-radius: 6px !important;
}
.nav a{
color: white !important;
font-size: 1.5em !important;
}