我通过 MAXcdn 托管的 CDN 使用 BOOTSTRAP。但现在我想更改 CSS 文件中的某些内容,但它不在我的服务器上。
所以我的问题是,当您通过 CDN 解决方案嵌入文件时如何处理额外的 CSS?
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
最佳答案
创建一个名为 custom.css
的新文件并将其包含在 <head></head>
中在 CDN 版本之后。
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- Your Custom theme -->
<link rel="stylesheet" href="your/path/to/custom/css/file">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
关于css - BOOTSTRAP CDN 托管,附加 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30319339/