css - BOOTSTRAP CDN 托管,附加 CSS

标签 css twitter-bootstrap cdn

我通过 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/

相关文章:

html - Bootstrap header 变小时恢复为白色

javascript - 公司如何对 CDN 网站上的项目收费?

javascript - 具有固定宽度和动态高度的 iframe

javascript - Jquery 在 div 中搜索一个值

javascript - 克隆作为唯一元素的元素

html - Bootstrap HTML 验证器警告 : Element nav does not need a role attribute

html - Bootstrap 类未应用于 HTML 选择标记

javascript - 静态资源转CDN后,google maps在Chrome+Firefox中报错,在Safari中正常 :

amazon-web-services - 每个 POP 的每个 CloudFront 分配的总缓存空间限制?

css - 在 Flex : Buttons in RichTextEditor only? 的 CSS 中寻址