CSS 使用 Twitter Bootstrap 重置样式表

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9853206/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 03:23:31  来源:igfitidea点击:

Reset Style Sheet with Twitter Bootstrap

csstwitter-bootstrap

提问by Sachindra

In my website I use twitter bootstrap. Is it necessary to include reset.css with my site? Is it included in bootstrap.css file?

在我的网站中,我使用 twitter bootstrap。是否有必要在我的网站中包含 reset.css?它是否包含在 bootstrap.css 文件中?

采纳答案by Sachindra

With Bootstrap 2, the old reset block has been dropped in favor of Normalize.css, that also powers the HTML5 Boilerplate. Normalize.css makes browsers render all elements more consistently and in line with modern standards and it precisely targets only the styles that need normalizing.

在 Bootstrap 2 中,旧的重置块已被删除,取而代之的是Normalize.css,它也支持 HTML5 Boilerplate。Normalize.css 使浏览器更一致地呈现所有元素并符合现代标准,并且它仅针对需要规范化的样式。

回答by Andres Ilich

normalize.cssis included at the beginning of the bootstrap.cssfile, so you don't need to have another one.

normalize.css包含在bootstrap.css文件的开头,因此您不需要另一个。

回答by Mackelito

Just a note to this. Twitter Bootstrap 2.0 runs Normalize.css,instead of reset. (but they have kept the name as reset.css for some odd reason :D )

只是注意这一点。Twitter Bootstrap 2.0 运行Normalize.css,而不是重置。(但出于某种奇怪的原因,他们将名称保留为 reset.css :D)