我正在尝试使用您可以在此处找到的bootswatch Bootstrap模板:http://www.bootstrapcdn.com/#bootswatch_tab(模板是Amelia)。
我是否只将其添加到我的index.html文档中:
<link href="//maxcdn.bootstrapcdn.com/bootswatch/3.1.1/amelia/bootstrap.min.css" rel="stylesheet">
或者我是否还需要添加这两个以使其正常工作:
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
我想我只需要第一段代码,但我需要它连接到我的style.css文档。
答案 0 :(得分:1)
For Bootstrap, you need only these by default :
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
根据您要使用的主题,您必须浏览源代码以检查其他外部文件用于布局(css
)和可见效果(.js
)为它
通过src,你会找到一个关于amelia的网址:
<link href="//maxcdn.bootstrapcdn.com/bootswatch/3.1.1/amelia/bootstrap.min.css" rel="stylesheet">