我剛剛開始一個項目,我正在使用Twitters Bootstrap並想知道它是否有自己的重置規則。使用Twitter引導標準化樣式表
正常情況下,我在規範化樣式表中尋找幫助我的網站看起來更一致的跨瀏覽器,但這是Bootstrap所需的嗎?
我剛剛開始一個項目,我正在使用Twitters Bootstrap並想知道它是否有自己的重置規則。使用Twitter引導標準化樣式表
正常情況下,我在規範化樣式表中尋找幫助我的網站看起來更一致的跨瀏覽器,但這是Bootstrap所需的嗎?
Bootstrap已經使用normalize.css。看看the source(和LESS file):
/*!
* Bootstrap v2.2.2
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
display: block;
}
引導V3現在使這個明確的,也包括版本號:
/*!
* Bootstrap v3.0.3 (http://getbootstrap.com)
* Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
*/
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
注意normalize.css現在是v3.0.0- rc.1,所以你可能想看看CHANGELOG或diff,並評估你是否想在你的網站上使用它們。
它使用[normalize.css](http://necolas.github.com/normalize.css/) –