今晚我决定尝试使用Bootstrap(只学习了大约两周的CSS/HTML),但是我遇到了一个问题。由于某种原因,我的HTML文档似乎没有链接到Bootstrap样式表。我使用了其中一个下拉代码片段,但结果没有样式化。请问有人可以看出我做错了什么吗?以下是我的HTML代码。
<!DOCTYPE html>
<html lang = "en">
<head>
<title>Test</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
</body>
</html>
bootstrap.css
和bootstrap.min.css
。通常情况下,前者是后者的未压缩版本,你只需要其中一个即可。 - Jared Farrish