包括bootstrap.min.css和bootstrap.css或只有一个? [英] Include both bootstrap.min.css and bootstrap.css or just one?

查看:349
本文介绍了包括bootstrap.min.css和bootstrap.css或只有一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了bootstrap.min.css和bootstrap.css文件,在调试时,我发现只有其中一个被使用,而另一个被覆盖。我很困惑,他们是否有任何额外的功能,我不使用。我也想知道bootstrap.js和bootstrap.min.js是否操作类似。

I've added both the bootstrap.min.css and bootstrap.css files and while debugging, I found that only one of them is being used while the other is being overwritten. I'm confused as to whether either of them has any additional features that I'm not using. I'd also like to know whether bootstrap.js and bootstrap.min.js operate similarly.

推荐答案

您可以为每个文档指定一个名为A的类。 .min.css / .min.js - 通常是相同的css和js文件删除所有空间。它使它们更小,加载更快。浏览器不再需要空格。

This is correct behavior - you can have a single class named 'A' per document. .min.css/.min.js - are generally the same css and js files with all spaces removed from them. It makes them smaller and load faster. Browser won't need spaces anyway.

这篇关于包括bootstrap.min.css和bootstrap.css或只有一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆