normalize.css v4.0.0英漢對(duì)照版

/*! normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css */


/**

*?1.?Change?the?default?font?family?in?all?browsers?(opinionated).設(shè)置默認(rèn)字體為無(wú)襯線字體仔沿。

*?2.?Prevent?adjustments?of?font?size?after?orientation?changes?in?IE?and?iOS.防止?iOS?和?IE?橫屏?xí)r調(diào)整文本大小润讥,不用none值禁止用戶縮放满钟。

*/

html{

font-family:sans-serif;?/*?1?*/

-ms-text-size-adjust:100%;/*?2?*/

-webkit-text-size-adjust:100%;/*?2?*/

}

/**

*?Remove?the?margin?in?all?browsers?(opinionated).移除margin辆琅,針對(duì)所有瀏覽器(自定義)

*/

body{

margin:0;

}

/*?HTML5?display?definitions?HTML5顯示定義

==========================================================================?*/

/**

*?Add?the?correct?display?in?IE?9-.修正補(bǔ)充IE9-的顯示方式

*?1.?Add?the?correct?display?in?Edge,?IE,?and?Firefox.修正補(bǔ)充Edge,?IE,?and?Firefox的顯示方式

*?2.?Add?the?correct?display?in?IE.修正補(bǔ)充IE的顯示方式

*/

article,

aside,

details,/*?1?*/

figcaption,

figure,

footer,

header,

main,/*?2?*/

menu,

nav,

section,

summary{?/*?1?*/

display:block;

}

/**

*?Add?the?correct?display?in?IE?9-.修正補(bǔ)充IE9-的顯示方式

*/

audio,

canvas,

progress,

video{

display:inline-block;

}

/**

*?Add?the?correct?display?in?iOS?4-7.修正補(bǔ)充iOS?4-7的顯示方式

*/

audio:not([controls]){

display:none;

height:0;

}

/**

*?Add?the?correct?vertical?alignment?in?Chrome,?Firefox,?and?Opera.修正補(bǔ)充在Chrome,?Firefox,?和Opera中的垂直對(duì)齊方式

*/

progress{

vertical-align:baseline;

}

/**

*?Add?the?correct?display?in?IE?10-.修正補(bǔ)充IE10-的顯示方式

*?1.?Add?the?correct?display?in?IE.修正補(bǔ)充IE的顯示方式

*/

template,/*?1?*/

[hidden]{

display:none;

}

/*?Links??鏈接

==========================================================================?*/

/**

*?Remove?the?gray?background?on?active?links?in?IE?10.去掉?IE?10?鏈接激活時(shí)的灰色背景

*/

a{

background-color:transparent;

}

/**

*?Remove?the?outline?on?focused?links?when?they?are?also?active?or?hovered

*?in?all?browsers?(opinionated).移除焦點(diǎn)鏈接active和hover時(shí)的輪廓線目代,針對(duì)所有瀏覽器(自定義)

*/

a:active,

a:hover{

outline-width:0;

}

/*?Text-level?semantics??文本語(yǔ)義

==========================================================================?*/

/**

*?1.?Remove?the?bottom?border?in?Firefox?39-.1.?移除在Firefox?39-下的下邊框

*?2.?Add?the?correct?text?decoration?in?Chrome,?Edge,?IE,?Opera,?and?Safari.?2.?修正補(bǔ)充在Chrome,?Edge,?IE,?Opera,?和?Safari里的文本裝飾線

*/

abbr[title]{

border-bottom:none;?/*?1?*/

text-decoration:underline;?/*?2?*/

text-decoration:underline?dotted;?/*?2?*/

}

/**

*?Prevent?the?duplicate?application?of?`bolder`?by?the?next?rule?in?Safari?6.?下條規(guī)則避免在Safari?6中重復(fù)運(yùn)用"bolder"

*/

b,

strong{

font-weight:inherit;

}

/**

*?Add?the?correct?font?weight?in?Chrome,?Edge,?and?Safari.在Chrome,?Edge,?and?Safari中修正補(bǔ)充font?weight

*/

b,

strong{

font-weight:bolder;

}

/**

*?Add?the?correct?font?style?in?Android?4.3-.修正補(bǔ)充Android?4.3-里的font?style

*/

dfn{

font-style:italic;

}

/**

*?Correct?the?font?size?and?margin?on?`h1`?elements?within?`section`?and

*?`article`?contexts?in?Chrome,?Firefox,?and?Safari.?更正Chrome咱台,F(xiàn)irefox夏志,Safari瀏覽器下`section`和`article`節(jié)點(diǎn)內(nèi)的h1的字體大小和margin

*/

h1{

font-size:2em;

margin:0.67em?0;

}

/**

*?Add?the?correct?background?and?color?in?IE?9-.修正補(bǔ)充?IE?9-?下的?background?and?color

*/

mark{

background-color:#ff0;

color:#000;

}

/**

*?Add?the?correct?font?size?in?all?browsers.針對(duì)所有瀏覽器修正補(bǔ)充font?size

*/

small{

font-size:80%;

}

/**

*?Prevent?`sub`?and?`sup`?elements?from?affecting?the?line?height?in

*?all?browsers.防止`sub`?和?`sup`元素影響行高垒拢,針對(duì)所有瀏覽器

*/

sub,

sup{

font-size:75%;

line-height:0;

position:relative;

vertical-align:baseline;

}

sub{

bottom:-0.25em;

}

sup{

top:-0.5em;

}

/*?Embedded?content?內(nèi)嵌元素

==========================================================================?*/

/**

*?Remove?the?border?on?images?inside?links?in?IE?10-.去除?IE?10-?a?內(nèi)部?img?元素默認(rèn)的邊框

*/

img{

border-style:none;

}

/**

*?Hide?the?overflow?in?IE.修復(fù)?IE9?中的?overflow?的怪異表現(xiàn)

*/

svg:not(:root){

overflow:hidden;

}

/*?Grouping?content?群組元素

==========================================================================?*/

/**

*?1.?Correct?the?inheritance?and?scaling?of?font?size?in?all?browsers.1.?糾正在所有瀏覽器的字體和字體大小的繼承和縮放

*?2.?Correct?the?odd?`em`?font?sizing?in?all?browsers.2.糾正在所有瀏覽器的‘em’字體大小

*/

code,

kbd,

pre,

samp{

font-family:monospace,?monospace;?/*?1?*/

font-size:1em;?/*?2?*/

}

/**

*?Add?the?correct?margin?in?IE?8.修正補(bǔ)充IE8下的margin

*/

figure{

margin:1em?40px;

}

/**

*?1.?Add?the?correct?box?sizing?in?Firefox.1.修正補(bǔ)充Firefox下的box-sizing

*?2.?Show?the?overflow?in?Edge?and?IE.2.在Edge?和?IE下溢出顯示

*/

hr{

box-sizing:content-box;?/*?1?*/

height:0;?/*?1?*/

overflow:visible;?/*?2?*/

}

/*?Forms?表單

==========================================================================?*/

/**

*?Change?font?properties?to?`inherit`?in?all?browsers?(opinionated).改字體屬性為繼承“inherit”健无,針對(duì)所有瀏覽器(自定義)

*/

button,

input,

select,

textarea{

font:inherit;

}

/**

*?Restore?the?font?weight?unset?by?the?previous?rule.恢復(fù)font?weight取消以前的規(guī)則

*/

optgroup{

font-weight:bold;

}

/**

*?Show?the?overflow?in?IE.在IE下溢出顯示

*?1.?Show?the?overflow?in?Edge.1.在Edge下溢出顯示

*?2.?Show?the?overflow?in?Edge,?Firefox,?and?IE.2.在Edge,?Firefox,?和?IE下溢出顯示

*/

button,

input,/*?1?*/

select{?/*?2?*/

overflow:visible;

}

/**

*?Remove?the?margin?in?Safari.移除Safari下的margin

*?1.?Remove?the?margin?in?Firefox?and?Safari.1.移除Safari和Firefox下的margin

*/

button,

input,

select,

textarea{?/*?1?*/

margin:0;

}

/**

*?Remove?the?inheritence?of?text?transform?in?Edge,?Firefox,?and?IE.移除在Edge,?Firefox,?和?IE里的text-transform的繼承

*?1.?Remove?the?inheritence?of?text?transform?in?Firefox.1.移除在Firefox里text-transform的繼承

*/

button,

select{?/*?1?*/

text-transform:none;

}

/**

*?Change?the?cursor?in?all?browsers?(opinionated).改光標(biāo)為手型荣恐,針對(duì)所有瀏覽器(自定義)

*/

button,

[type="button"],

[type="reset"],

[type="submit"]{

cursor:pointer;

}

/**

*?Restore?the?default?cursor?to?disabled?elements?unset?by?the?previous?rule.恢復(fù)disabled元素的默認(rèn)光標(biāo),取消以前的規(guī)則累贤。

*/

[disabled]{

cursor:default;

}

/**

*?1.?Prevent?a?WebKit?bug?where?(2)?destroys?native?`audio`?and?`video`

*????controls?in?Android?4.1.?防止WebKit的bug(2)破壞原生`audio‘和?`video?`?控制條叠穆,在安卓4的版本下

*?2.?Correct?the?inability?to?style?clickable?types?in?iOS.2.?修正在IOS下不可點(diǎn)擊的bug

*/

button,

html?[type="button"],/*?1?*/

[type="reset"],

[type="submit"]{

-webkit-appearance:button;?/*?2?*/

}

/**

*?Remove?the?inner?border?and?padding?in?Firefox.移除Firefox中的border和padding

*/

button::-moz-focus-inner,

input::-moz-focus-inner{

border:0;

padding:0;

}

/**

*?Restore?the?focus?styles?unset?by?the?previous?rule.通過(guò)恢復(fù)以前的規(guī)則取消設(shè)置的focus樣式。

*/

button:-moz-focusring,

input:-moz-focusring{

outline:1px?dotted?ButtonText;

}

/**

*?Change?the?border,?margin,?and?padding?in?all?browsers?(opinionated).更改border,?margin,?和?padding臼膏,針對(duì)所有的瀏覽器(自定義)

*/

fieldset{

border:1px?solid?#c0c0c0;

margin:0?2px;

padding:0.35em?0.625em?0.75em;

}

/**

*?1.?Correct?the?text?wrapping?in?Edge?and?IE.1.更正Edge和IE中的文字換行硼被。

*?2.?Correct?the?color?inheritance?from?`fieldset`?elements?in?IE.2.糾正在IE瀏覽器`fieldset`元素的字體顏色繼承。

*?3.?Remove?the?padding?so?developers?are?not?caught?out?when?they?zero?out

*????`fieldset`?elements?in?all?browsers.3.?移除padding針對(duì)所有瀏覽器

*/

legend{

box-sizing:border-box;?/*?1?*/

color:inherit;?/*?2?*/

display:table;?/*?1?*/

max-width:100%;?/*?1?*/

padding:0;?/*?3?*/

white-space:normal;?/*?1?*/

}

/**

*?Remove?the?default?vertical?scrollbar?in?IE.移除IE瀏覽器中默認(rèn)的垂直滾動(dòng)條

*/

textarea{

overflow:auto;

}

/**

*?1.?Add?the?correct?box?sizing?in?IE?10-.1.修正補(bǔ)充box?sizing渗磅,在IE?10-瀏覽器

*?2.?Remove?the?padding?in?IE?10-.2.移除padding在IE?10-瀏覽器

*/

[type="checkbox"],

[type="radio"]{

box-sizing:border-box;?/*?1?*/

padding:0;?/*?2?*/

}

/**

*?Correct?the?cursor?style?of?increment?and?decrement?buttons?in?Chrome.糾正在Chrome遞增和遞減按鈕光標(biāo)樣式

*/

[type="number"]::-webkit-inner-spin-button,

[type="number"]::-webkit-outer-spin-button{

height:auto;

}

/**

*?Correct?the?odd?appearance?of?search?inputs?in?Chrome?and?Safari.更正search在Chrome和Safari古怪的樣子

*/

[type="search"]{

-webkit-appearance:textfield;

}

/**

*?Remove?the?inner?padding?and?cancel?buttons?in?Chrome?on?OS?X?and

*?Safari?on?OS?X.移除padding和取消按鈕在Chrome?OS?X?和?Safari?OS?X嚷硫。

*/

[type="search"]::-webkit-search-cancel-button,

[type="search"]::-webkit-search-decoration{

-webkit-appearance:none;

}

壓縮版:

/*!?normalize.css?v4.0.0?|?MIT?License?|?github.com/necolas/normalize.css?*/

html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}

body{margin:0}

article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}

audio,canvas,progress,video{display:inline-block}

audio:not([controls]){display:none;height:0}

progress{vertical-align:baseline}

[hidden],template{display:none}

a{background-color:transparent}

a:active,a:hover{outline-width:0}

abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline?dotted}

b,strong{font-weight:inherit;font-weight:bolder}

dfn{font-style:italic}

h1{margin:.67em?0;font-size:2em}

mark{background-color:#ff0;color:#000}

small{font-size:80%}

sub,sup{position:relative;vertical-align:baseline;font-size:75%;line-height:0}

sub{bottom:-.25em}

sup{top:-.5em}

img{border-style:none}

svg:not(:root){overflow:hidden}

code,kbd,pre,samp{font-size:1em;font-family:monospace}

figure{margin:1em?40px}

hr{overflow:visible;box-sizing:content-box;height:0}

button,input,select,textarea{font:inherit}

optgroup{font-weight:700}

button,input,select{overflow:visible}

button,input,select,textarea{margin:0}

button,select{text-transform:none}

[type=button],[type=reset],[type=submit],button{cursor:pointer}

[disabled]{cursor:default}

[type=reset],[type=submit],button,html?[type=button]{-webkit-appearance:button}

button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}

button:-moz-focusring,input:-moz-focusring{outline:1px?dotted?ButtonText}

fieldset{margin:0?2px;padding:.35em?.625em?.75em;border:1px?solid?silver}

legend{display:table;box-sizing:border-box;padding:0;max-width:100%;color:inherit;white-space:normal}

textarea{overflow:auto}

[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}

[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}

[type=search]{-webkit-appearance:textfield}

[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市始鱼,隨后出現(xiàn)的幾起案子仔掸,更是在濱河造成了極大的恐慌,老刑警劉巖医清,帶你破解...
    沈念sama閱讀 218,451評(píng)論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件起暮,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡状勤,警方通過(guò)查閱死者的電腦和手機(jī)鞋怀,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,172評(píng)論 3 394
  • 文/潘曉璐 我一進(jìn)店門双泪,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人密似,你說(shuō)我怎么就攤上這事焙矛。” “怎么了残腌?”我有些...
    開封第一講書人閱讀 164,782評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵村斟,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我抛猫,道長(zhǎng)蟆盹,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,709評(píng)論 1 294
  • 正文 為了忘掉前任闺金,我火速辦了婚禮逾滥,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘败匹。我一直安慰自己寨昙,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,733評(píng)論 6 392
  • 文/花漫 我一把揭開白布掀亩。 她就那樣靜靜地躺著舔哪,像睡著了一般。 火紅的嫁衣襯著肌膚如雪槽棍。 梳的紋絲不亂的頭發(fā)上捉蚤,一...
    開封第一講書人閱讀 51,578評(píng)論 1 305
  • 那天,我揣著相機(jī)與錄音炼七,去河邊找鬼缆巧。 笑死,一個(gè)胖子當(dāng)著我的面吹牛豌拙,可吹牛的內(nèi)容都是我干的盅蝗。 我是一名探鬼主播,決...
    沈念sama閱讀 40,320評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼姆蘸,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了芙委?” 一聲冷哼從身側(cè)響起逞敷,我...
    開封第一講書人閱讀 39,241評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎灌侣,沒想到半個(gè)月后推捐,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,686評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡侧啼,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,878評(píng)論 3 336
  • 正文 我和宋清朗相戀三年牛柒,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了堪簿。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,992評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡皮壁,死狀恐怖椭更,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情蛾魄,我是刑警寧澤虑瀑,帶...
    沈念sama閱讀 35,715評(píng)論 5 346
  • 正文 年R本政府宣布,位于F島的核電站滴须,受9級(jí)特大地震影響舌狗,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜扔水,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,336評(píng)論 3 330
  • 文/蒙蒙 一痛侍、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧魔市,春花似錦主届、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,912評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至磅网,卻和暖如春谈截,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背涧偷。 一陣腳步聲響...
    開封第一講書人閱讀 33,040評(píng)論 1 270
  • 我被黑心中介騙來(lái)泰國(guó)打工簸喂, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人燎潮。 一個(gè)月前我還...
    沈念sama閱讀 48,173評(píng)論 3 370
  • 正文 我出身青樓喻鳄,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親确封。 傳聞我的和親對(duì)象是個(gè)殘疾皇子除呵,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,947評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容