bootstrap.min.css和bootstrap.css有什么区别? [英] What is the difference between bootstrap.min.css and bootstrap.css?

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

问题描述

在bootstrap.min.css或bootstrap.css之间应该使用什么?

我对这两个文件感到困惑,因为bootstrap.css可读,即可以向上滚动&下.但是bootstrap.min.css很难编辑,因为您只能左右滚动它.

I am confused between the two files because bootstrap.css is readable i.e. scrollable up & down. But the bootstrap.min.css is hard to edit since you can only scroll it left and right.

推荐答案

bootstrap.min.css已缩小.这意味着所有空白和其他多余字符均已删除.通常在生产中使用此功能以减小文件的大小.在开发过程中,使用未缩小的版本通常会很有帮助,因为正如您所说的那样,它是可读的.

bootstrap.min.css has been minified. This means all the whitespace and other extra characters have been removed. This is commonly done for use in production, to reduce the size of the file. When developing, it is usually helpful to use the unminified version, since, as you said, it is readable.

正如DrBeza在评论中提到的那样,如果您打算修改bootstrap.css文件,则更好的做法是创建一个单独的.css文件并添加自己的覆盖默认设置的css规则.这样,如果您更新到引导程序的较新版本,则只需换出引导程序文件,而无需编辑新的bootstrap.css即可将修改内容移至该文件.

As mentioned by DrBeza in a comment, if your intention is to modify the bootstrap.css file, it is much better practice to create a separate .css file and add your own css rules that override the defaults. This way, if you update to a newer version of bootstrap, you can simply swap out the bootstrap files, instead of needing to edit the new bootstrap.css to move your modifications over to it.

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

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