Include both bootstrap.min.css and bootstrap.css o

2020-07-10 09:20发布

问题:

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.

回答1:

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.