<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Emily Thacker">
<title>[Insert Name of Business Here]</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
<link rel="stylesheet" type="text/css" href="large_css.css">
</head>
<body>
<div class="container-fluid">
<header class="page-header">
<h3 class="text-center">[Insert Company Logo here]</h3>
<div class="btn-group btn-group-justified">
<a class="btn navigation">Home</a>
<a class="btn navigation">About</a>
<div class="btn-group">
<a class="btn dropdown-toggle navigation" data-toggle="dropdown">
Services <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Web</a></li>
<li><a href="#">Mobile</a></li>
<li><a href="#">App</a></li>
</ul>
</div>
<a class="btn navigation">Contact</a>
</div>
</header>
<section class="">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</section>
<section>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</section>
<footer class="modal-footer">
<li class="list-group-item-heading">list item</li>
</ul>
<address>Contact Information</address>
</footer>
</div> <!-- closing container -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
CSS工作外部CSS文件不与引导CSS
body > div > header > div > a.navigation {
background-color: darkgray;
color: white;
}
所以我想改变导航栏上的颜色(锚标记与BTN类)。我试过增加特异性,我的外部CSS的链接是在引导CDN之后,我清除了缓存,我用过!重要的。我似乎无法弄清楚我错过了什么。我对bootstrap完全陌生,并试图找出如何将其纳入我的网站。
是否也能告诉我们您的自定义的CSS文件?你可以创建一个代码片段。 –
现在只有三条线;它与HTML混在一起,我将它分开。 – ethacker