0英汉对照版

关于CSS Reset那些事(3):架构CSS基础库

2015/08/03 · CSS · CSS
Reset

原稿出处: Alsiso   

/*! normalize.css v3.0.3 | MIT License |
github.com/necolas/normalize.css */

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

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

前言

上一章节我们对Normalize.css源码进行解析,但是由于其代码过长导致不宜浏览,所以表单Forms,表格Table部分内容放在此章节介绍。本章节会完成所有源代码翻译整理,最终会整理出Normalize-zh.css中文版本并开源至Github供大家交流使用。

回顾:至于CSS Reset 那多少个事(二)之 诺玛lize.css
源码解读

//


/**

Normalize-zh.css 出炉

Normalize-zh.css是根据对Normalize.css的源码分析后,经过学习与整理,将源代码中的英文注释文档翻译为中文版本,方便国内的开发者学习和使用,我深知此版本一定有很多不足,希望能得到大家的理解和支持,同样也很愿意和大家一起完善。

现已将源代码开源至Github

连串地址:

// 1. Set default font family to sans-serif.

/**

* 1. Change the default font family in all browsers
(opinionated).设置暗中认同字体为无衬线字体。

Normalize 源码解读 (2)

上章节对 html与body成分,HTML5成分,链接,语义化文本,内嵌成分,群组成分等源码内容早已做了分析,那章节继续完结表单Forms,表格Table部分。

源码地址:

源码版本:v3.0.3

// 2. Prevent iOS and IE text size adjust after device orientation
change,

* 1. Change the default font family in all browsers (opinionated).设置专擅认同字体为无衬线字体。

* 2. Prevent adjustments of font size after orientation changes in IE
and iOS.幸免 iOS 和 IE 横屏时调整文本大小,不用none值禁止用户缩放。

表单 Forms

CSS

/** * 1. Correct color not being inherited. * Known issue: affects
color of disabled elements. * 2. Correct font properties not being
inherited. * 3. Address margins set differently in Firefox 4+, Safari,
and Chrome. */ button, input, optgroup, select, textarea { color:
inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ }

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
* 1. Correct color not being inherited.
*    Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
*/
 
button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}
  1. 查对所有浏览器中颜色不接二连三的难点
  2. 立异所有浏览器中字体不继续的难点
  3. 校正 Firefox 3+, Safari5 和 Chrome 中外边距差别的难题

有部分浏览器会把form表单中的一些元素 textarea,text,button,select 中的字体和字体颜色默认会设置成用户的字体或者是浏览器的字体,并不会从父元素继承,所以这里重置了这些元素的默认样式。

CSS

/** * Address `overflow` set to `hidden` in IE 8/9/10/11. */
button { overflow: visible; }

1
2
3
4
5
6
7
/**
* Address `overflow` set to `hidden` in IE 8/9/10/11.
*/
 
button {
  overflow: visible;
}
  • 统一 IE 8/9/10/11 overflow属性为visible

在 IE 8/9/10/11里的button默认的overflow是hidden,这里统一为visible

CSS

/** * Address inconsistent `text-transform` inheritance for
`button` and `select`. * All other form control elements do not
inherit `text-transform` values. * Correct `button` style
inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `select`
style inheritance in Firefox. */ button, select { text-transform: none;
}

1
2
3
4
5
6
7
8
9
10
11
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
* Correct `select` style inheritance in Firefox.
*/
 
button,
select {
  text-transform: none;
}
  • 联合各浏览器text-transform不会继承的问题

CSS

/** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys
native `audio` * and `video` controls. * 2. Correct inability to
style clickable `input` types in iOS. * 3. Improve usability and
consistency of cursor style between image-type * `input` and others.
*/ button, html input[type=”button”], /* 1 */
input[type=”reset”], input[type=”submit”] { -webkit-appearance:
button; /* 2 */ cursor: pointer; /* 3 */ }

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
*    and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
*    `input` and others.
*/
 
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}
  1. 避免 Android 4.0.* 中的 WebKit bug
    ,该bug会损坏原生的audio和video的控制器
  • 更正 iOS 中无法设置可点击的input的问题

  • 联合其余品种的input的光标样式

此地将可点击的按钮,统一安装鼠标样式为pointer,提高了可用性

CSS

/** * Re-set default cursor for disabled elements. */
button[disabled], html input[disabled] { cursor: default; }

1
2
3
4
5
6
7
8
/**
* Re-set default cursor for disabled elements.
*/
 
button[disabled],
html input[disabled] {
  cursor: default;
}
  • 重置按钮禁用时光标样式

CSS

/** * Remove inner padding and border in Firefox 4+. */
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding:
0; }

1
2
3
4
5
6
7
8
9
/**
* Remove inner padding and border in Firefox 4+.
*/
 
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
  • 移除 Firefox 4+ 的内边距

CSS

/** * Address Firefox 4+ setting `line-height` on `input` using
`!important` in * the UA stylesheet. */ input { line-height: normal;
}

1
2
3
4
5
6
7
8
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
 
input {
  line-height: normal;
}
  • 联合安装行高为normal

Firefox浏览器会暗中同意设置input[type=”button”]的行高为normal !important,这里统一样式

CSS

/** * It’s recommended that you don’t attempt to style these
elements. * Firefox’s implementation doesn’t respect box-sizing,
padding, or width. * * 1. Address box sizing set to `content-box` in
IE 8/9/10. * 2. Remove excess padding in IE 8/9/10. */
input[type=”checkbox”], input[type=”radio”] { box-sizing:
border-box; /* 1 */ padding: 0; /* 2 */ }

1
2
3
4
5
6
7
8
9
10
11
12
13
/**
* It’s recommended that you don’t attempt to style these elements.
* Firefox’s implementation doesn’t respect box-sizing, padding, or width.
*
* 1. Address box sizing set to `content-box` in IE 8/9/10.
* 2. Remove excess padding in IE 8/9/10.
*/
 
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}
  1. 矫正 IE 8/9 box-sizing 被安装为content-box的问题
  • 移除 IE 8/9 中多余的内边距

CSS

/** * Fix the cursor style for Chrome’s increment/decrement buttons.
For certain * `font-size` values of the `input`, it causes the
cursor style of the * decrement button to change from `default` to
`text`. */ input[type=”number”]::-webkit-inner-spin-button,
input[type=”number”]::-webkit-outer-spin-button { height: auto; }

1
2
3
4
5
6
7
8
9
10
/**
* Fix the cursor style for Chrome’s increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/
 
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
  • 修正 Chrome
    中 input [type="number"] 在特定高度和 font-size 时,下面一个箭头光标变成cursor: text 效果

 

CSS

/** * 1. Address `appearance` set to `searchfield` in Safari and
Chrome. * 2. Address `box-sizing` set to `border-box` in Safari and
Chrome. */ input[type=”search”] { -webkit-appearance: textfield; /*
1 */ box-sizing: content-box; /* 2 */ }

1
2
3
4
5
6
7
8
9
/**
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
*/
 
input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  box-sizing: content-box; /* 2 */
}
  1. 修正 Safari 5 和 Chrome 中appearance被设置为searchfield的问题
  • 修正 Safari 5 和 Chrome 中box-sizing被设置为border-box的问题

searchfield是CSS3的属性,它可以让一个div元素看上去像任何元素,但是浏览器支持性并不好,

CSS

/** * Remove inner padding and search cancel button in Safari and
Chrome on OS X. * Safari (but not Chrome) clips the cancel button when
the search input has * padding (and `textfield` appearance). */
input[type=”search”]::-webkit-search-cancel-button,
input[type=”search”]::-webkit-search-decoration { -webkit-appearance:
none; }

1
2
3
4
5
6
7
8
9
10
/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/
 
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
  • 移除原生暗中同意样式,统一search的输入框样式

 

CSS

/** * Define consistent border, margin, and padding. */ fieldset {
border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em
0.75em; }

1
2
3
4
5
6
7
8
9
/**
* Define consistent border, margin, and padding.
*/
 
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
  • 概念一致的边框、外边距和内边距

CSS

/** * 1. Correct `color` not being inherited in IE 8/9/10/11. * 2.
Remove padding so people aren’t caught out if they zero out fieldsets.
*/ legend { border: 0; /* 1 */ padding: 0; /* 2 */ }

1
2
3
4
5
6
7
8
9
/**
* 1. Correct `color` not being inherited in IE 8/9/10/11.
* 2. Remove padding so people aren’t caught out if they zero out fieldsets.
*/
 
legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}
  1. 修正 IE 6-9 中颜色无法延续的标题
  2. 重置内边距

CSS

/** * Remove default vertical scrollbar in IE 8/9/10/11. */ textarea
{ overflow: auto; }

1
2
3
4
5
6
7
/**
* Remove default vertical scrollbar in IE 8/9/10/11.
*/
 
textarea {
  overflow: auto;
}
  • 移除 IE8-11 中默许的垂直滚动条

CSS

/** * Don’t inherit the `font-weight` (applied by a rule above). *
NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/ optgroup { font-weight: bold; }

1
2
3
4
5
6
7
8
/**
* Don’t inherit the `font-weight` (applied by a rule above).
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/
 
optgroup {
  font-weight: bold;
}
  • 统一设置optgroup元素font-weight始终为bold

//    without disabling user zoom.

* 2. Prevent adjustments of font size after orientation changes in IE and iOS.幸免 iOS 和 IE 横屏时调整文本大小,不用none值禁止用户缩放。

*/

表格 Tables

CSS

/** * Remove most spacing between table cells. */ table {
border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; }

1
2
3
4
5
6
7
8
9
10
11
12
13
/**
* Remove most spacing between table cells.
*/
 
table {
  border-collapse: collapse;
  border-spacing: 0;
}
 
td,
th {
  padding: 0;
}

//

*/

html{

总结

由此多少个章节对Normalize.css的源码进行了学习,清晰的了解了它的工作原理,作为传统CSS Reset替代者,它当之无愧,为大家提供一套很完整的跨浏览器解决方案。

而是,你是否会有和本人一样的需求,比如开发一个小站,或者一个PC端的系统时,只怕只必要有的简便的功底模块,比如我只想要不难的体裁重置,统一各浏览器的效益就好,并不必要HTML5以及CSS3的一部分标题修复。

那就是说下一章,大家来介绍,假诺制定属于自身的 CSS基础代码库?

1 赞 1 收藏
评论

亚洲必赢官网 1

html{

html{

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

font-family:sans-serif;// 1

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

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

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

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

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

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

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

}

}

}

/**

//

/**

* Remove the margin in all browsers
(opinionated).移除margin,针对具有浏览器(自定义)

// Remove default margin.

* Remove the margin in all browsers (opinionated).移除margin,针对具有浏览器(自定义)

*/

//

*/

body{

body{

body{

margin:0;

margin:0;

margin:0;

}

}

}

/* HTML5 display definitions HTML5显得定义

// HTML5 display definitions

/* HTML5 display definitions HTML5体现定义

==========================================================================
*/

//

//

// Correct `block` display not defined for any HTML5 element in IE
8/9.

// Correct `block` display not defined for `details` or `summary`
in IE 10/11

// and Firefox.

// Correct `block` display not defined for `main` in IE 11.

//

article,

aside,

details,

figcaption,

figure,

footer,

header,

hgroup,

main,

menu,

nav,

section,

summary{

display:block;

}

//

// 1. Correct `inline-block` display not defined in IE 8/9.

// 2. Normalize vertical alignment of `progress` in Chrome, Firefox,
and Opera.

//

audio,

canvas,

progress,

video{

display:inline-block;// 1

vertical-align:baseline;// 2

}

//

// Prevent modern browsers from displaying `audio` without controls.

// Remove excess height in iOS 5 devices.

//

audio:not([controls]) {

display:none;

height:0;

}

//

// Address `[hidden]` styling not present in IE 8/9/10.

// Hide the `template` element in IE 8/9/10/11, Safari, and Firefox
< 22.

//

[hidden],

template{

display:none;

}

// Links

========================================================================== */

/**

//

//

// Remove the gray background color from active links in IE 10.

//

a{

background-color:transparent;

}

//

// Improve readability of focused elements when they are also in an

// active/hover state.

//

a:active,

a:hover{

outline:0;

}

// Text-level semantics

/**

* Add the correct display in IE 9-.修正补充IE9-的突显格局

0英汉对照版。//

//

// Address styling not present in IE 8/9/10/11, Safari, and Chrome.

//

abbr[title] {

border-bottom:1pxdotted;

}

//

// Address style set to `bolder` in Firefox 4+, Safari, and Chrome.

//

b,

strong{

font-weight:bold;

}

//

// Address styling not present in Safari and Chrome.

//

dfn{

font-style:italic;

}

//

// Address variable `h1` font-size and margin within `section` and
`article`

// contexts in Firefox 4+, Safari, and Chrome.

//

h1{

font-size:2em;

margin:0.67em0;

}

//

// Address styling not present in IE 8/9.

//

mark{

background:#ff0;

color:#000;

}

//

// Address inconsistent and variable font size in all browsers.

//

small{

font-size:80%;

}

//

// Prevent `sub` and `sup` affecting `line-height` in all
browsers.

//

sub,

sup{

font-size:75%;

line-height:0;

position:relative;

vertical-align:baseline;

}

sup{

top:-0.5em;

}

sub{

bottom:-0.25em;

}

// Embedded content

* Add the correct display in IE 9-.更正补充IE9-的展现格局

* 1. Add the correct display in Edge, IE, and Firefox.校正补充Edge, IE,
and Firefox的展现方式

//

//

// Remove border when inside `a` element in IE 8/9/10.

//

img{

border:0;

}

//

// Correct overflow not hidden in IE 9/10/11.

//

svg:not(:root) {

overflow:hidden;

}

// Grouping content

* 1. Add the correct display in Edge, IE, and Firefox.校订补充Edge, IE, and Firefox的呈现格局

* 2. Add the correct display in IE.革新补充IE的呈现形式

//

//

// Address margin not present in IE 8/9 and Safari.

//

figure{

margin:1em40px;

}

//

// Address differences between Firefox and other browsers.

//

hr{

box-sizing:content-box;

height:0;

}

//

// Contain overflow in all browsers.

//

pre{

overflow:auto;

}

//

// Address odd `em`-unit font size rendering in all browsers.

//

code,

kbd,

pre,

samp{

font-family:monospace,monospace;

font-size:1em;

}

// Forms

* 2. Add the correct display in IE.修正补充IE的展现格局

*/

//

//

// Known limitation: by default, Chrome and Safari on OS X allow very
limited

// styling of `select`, unless a `border` property is set.

//

//

// 1. Correct color not being inherited.

//    Known issue: affects color of disabled elements.

// 2. Correct font properties not being inherited.

// 3. Address margins set differently in Firefox 4+, Safari, and Chrome.

//

button,

input,

optgroup,

select,

textarea{

color:inherit;// 1

font:inherit;// 2

margin:0;// 3

}

//

// Address `overflow` set to `hidden` in IE 8/9/10/11.

//

button{

overflow:visible;

}

//

// Address inconsistent `text-transform` inheritance for `button`
and `select`.

// All other form control elements do not inherit `text-transform`
values.

// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and
Opera.

// Correct `select` style inheritance in Firefox.

//

button,

select{

text-transform:none;

}

//

// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native
`audio`

//    and `video` controls.

// 2. Correct inability to style clickable `input` types in iOS.

// 3. Improve usability and consistency of cursor style between
image-type

//    `input` and others.

//

button,

htmlinput[type=”button”],// 1

input[type=”reset”],

input[type=”submit”] {

-webkit-appearance: button;// 2

cursor:pointer;// 3

}

//

// Re-set default cursor for disabled elements.

//

button[disabled],

htmlinput[disabled] {

cursor:default;

}

//

// Remove inner padding and border in Firefox 4+.

//

button::-moz-focus-inner,

input::-moz-focus-inner{

border:0;

padding:0;

}

//

// Address Firefox 4+ setting `line-height` on `input` using
`!important` in

// the UA stylesheet.

//

input{

line-height:normal;

}

//

// It’s recommended that you don’t attempt to style these elements.

// Firefox’s implementation doesn’t respect box-sizing, padding, or
width.

//

// 1. Address box sizing set to `content-box` in IE 8/9/10.

// 2. Remove excess padding in IE 8/9/10.

//

input[type=”checkbox”],

input[type=”radio”] {

box-sizing:border-box;// 1

padding:0;// 2

}

//

// Fix the cursor style for Chrome’s increment/decrement buttons. For
certain

// `font-size` values of the `input`, it causes the cursor style of
the

// decrement button to change from `default` to `text`.

//

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

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

height:auto;

}

//

// 1. Address `appearance` set to `searchfield` in Safari and
Chrome.

// 2. Address `box-sizing` set to `border-box` in Safari and Chrome.

//

input[type=”search”] {

-webkit-appearance: textfield;// 1

box-sizing:content-box;//2

}

//

// Remove inner padding and search cancel button in Safari and Chrome on
OS X.

// Safari (but not Chrome) clips the cancel button when the search input
has

// padding (and `textfield` appearance).

//

input[type=”search”]::-webkit-search-cancel-button,

input[type=”search”]::-webkit-search-decoration{

-webkit-appearance:none;

}

//

// Define consistent border, margin, and padding.

//

fieldset{

border:1pxsolid#c0c0c0;

margin:02px;

padding:0.35em0.625em0.75em;

}

//

// 1. Correct `color` not being inherited in IE 8/9/10/11.

// 2. Remove padding so people aren’t caught out if they zero out
fieldsets.

//

legend{

border:0;// 1

padding:0;// 2

}

//

// Remove default vertical scrollbar in IE 8/9/10/11.

//

textarea{

overflow:auto;

}

//

// Don’t inherit the `font-weight` (applied by a rule above).

// NOTE: the default cannot safely be changed in Chrome and Safari on OS
X.

//

optgroup{

font-weight:bold;

}

// Tables

*/

article,

//

//

// Remove most spacing between table cells.

//

table{

border-collapse:collapse;

border-spacing:0;

}

td,

th{

padding:0;

}

article,

aside,

aside,

details,/* 1 */

details,/* 1 */

figcaption,

figcaption,

figure,

figure,

footer,

footer,

header,

header,

main,/* 2 */

main,/* 2 */

menu,

menu,

nav,

nav,

section,

section,

summary{ /* 1 */

summary{ /* 1 */

display:block;

display:block;

}

}

/**

/**

* Add the correct display in IE 9-.校勘补充IE9-的显示格局

* Add the correct display in IE 9-.修正补充IE9-的展现方式

*/

*/

audio,

audio,

canvas,

canvas,

progress,

progress,

video{

video{

display:inline-block;

display:inline-block;

}

}

/**

/**

* Add the correct display in iOS 4-7.立异补充iOS 4-7的呈现方式

* Add the correct display in iOS 4-7.校对补充iOS 4-7的展现情势

*/

*/

audio:not([controls]){

audio:not([controls]){

display:none;

display:none;

height:0;

height:0;

}

}

/**

/**

* Add the correct vertical alignment in Chrome, Firefox, and
Opera.更正补充在Chrome, Firefox, 和Opera中的垂直对齐格局

* Add the correct vertical alignment in Chrome, Firefox, and Opera.纠正补充在Chrome, Firefox, 和Opera中的垂直对齐格局

*/

*/

progress{

progress{

vertical-align:baseline;

vertical-align:baseline;

}

}

/**

/**

* Add the correct display in IE 10-.改良补充IE10-的展现情势

* Add the correct display in IE 10-.改正补充IE10-的突显情势

* 1. Add the correct display in IE.考订补充IE的彰显方式

* 1. Add the correct display in IE.考订补充IE的突显形式

*/

*/

template,/* 1 */

template,/* 1 */

[hidden]{

[hidden]{

display:none;

display:none;

}

}

/* Links 链接

/* Links  链接

==========================================================================
*/

========================================================================== */

/**

/**

* Remove the gray background on active links in IE 10.去掉 IE 10
链接激活时的中绿背景

* Remove the gray background on active links in IE 10.去掉 IE 10 链接激活时的莲红背景

*/

*/

a{

a{

background-color:transparent;

background-color:transparent;

}

}

/**

/**

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

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

* in all browsers
(opinionated).移除大旨链接active和hover时的概略线,针对富有浏览器(自定义)

* in all browsers (opinionated).移除宗旨链接active和hover时的概况线,针对所有浏览器(自定义)

*/

*/

a:active,

a:active,

a:hover{

a:hover{

outline-width:0;

outline-width:0;

}

}

/* Text-level semantics 文本语义

/* Text-level semantics  文本语义

==========================================================================
*/

========================================================================== */

/**

/**

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

* 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. 矫正补充在Chrome, Edge, IE, Opera, 和 Safari里的文书装饰线

* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 2. 改正补充在Chrome, Edge, IE, Opera, 和 Safari里的文本装饰线

*/

*/

abbr[title]{

abbr[title]{

border-bottom:none; /* 1 */

border-bottom:none; /* 1 */

text-decoration:underline; /* 2 */

text-decoration:underline; /* 2 */

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

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

}

}

/**

/**

* Prevent the duplicate application of `bolder` by the next rule in
Safari 6. 下条规则幸免在Safari 6中重复使用”bolder”

* Prevent the duplicate application of `bolder` by the next rule in Safari 6. 下条规则防止在Safari 6中重新利用”bolder”

*/

*/

b,

b,

strong{

strong{

font-weight:inherit;

font-weight:inherit;

}

}

/**

/**

* Add the correct font weight in Chrome, Edge, and Safari.在Chrome,
Edge, and Safari中矫正补充font weight

* Add the correct font weight in Chrome, Edge, and Safari.在Chrome, Edge, and Safari中修正补充font weight

*/

*/

b,

b,

strong{

strong{

font-weight:bolder;

font-weight:bolder;

}

}

/**

/**

* Add the correct font style in Android 4.3-.矫正补充Android
4.3-里的font style

* Add the correct font style in Android 4.3-.修正补充Android 4.3-里的font style

*/

*/

dfn{

dfn{

font-style:italic;

font-style:italic;

}

}

/**

/**

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

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

* `article` contexts in Chrome, Firefox, and Safari.
核对Chrome,Firefox,Safari浏览器下`section`和`article`节点内的h1的字体大小和margin

* `article` contexts in Chrome, Firefox, and Safari. 核查Chrome,Firefox,Safari浏览器下`section`和`article`节点内的h1的字体大小和margin

*/

*/

h1{

h1{

font-size:2em;

font-size:2em;

margin:0.67em 0;

margin:0.67em 0;

}

}

/**

/**

* Add the correct background and color in IE 9-.改进补充 IE 9- 下的
background and color

* Add the correct background and color in IE 9-.更正补充 IE 9- 下的 background and color

*/

*/

mark{

mark{

background-color:#ff0;

background-color:#ff0;

color:#000;

color:#000;

}

}

/**

/**

* Add the correct font size in all browsers.针对具有浏览器核对补充font
size

* Add the correct font size in all browsers.针对负有浏览器勘误补充font size

*/

*/

small{

small{

font-size:80%;

font-size:80%;

}

}

/**

/**

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

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

* all browsers.防止`sub` 和 `sup`要素影响行高,针对具有浏览器

* all browsers.防止`sub` 和 `sup`要素影响行高,针对所有浏览器

*/

*/

sub,

sub,

sup{

sup{

font-size:75%;

font-size:75%;

line-height:0;

line-height:0;

position:relative;

position:relative;

vertical-align:baseline;

vertical-align:baseline;

}

}

sub{

sub{

bottom:-0.25em;

bottom:-0.25em;

}

}

sup{

sup{

top:-0.5em;

top:-0.5em;

}

}

/* Embedded content 内嵌成分

/* Embedded content 内嵌成分

==========================================================================
*/

========================================================================== */

/**

/**

* Remove the border on images inside links in IE 10-.去除 IE 10- a 内部
img 元素默许的边框

* Remove the border on images inside links in IE 10-.去除 IE 10- a 内部 img 成分暗中同意的边框

*/

*/

img{

img{

border-style:none;

border-style:none;

}

}

/**

/**

* Hide the overflow in IE.修复 IE9 中的 overflow 的奇幻表现

* Hide the overflow in IE.修复 IE9 中的 overflow 的新奇表现

*/

*/

svg:not(:root){

svg:not(:root){

overflow:hidden;

overflow:hidden;

}

}

/* Grouping content 群组元素

/* Grouping content 群组成分

==========================================================================
*/

========================================================================== */

/**

/**

* 1. Correct the inheritance and scaling of font size in all
browsers.1. 校正在装有浏览器的字体和字体大小的存续和缩放

* 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’字体大小

* 2. Correct the odd `em` font sizing in all browsers.2.改良在有着浏览器的‘em’字体大小

*/

*/

code,

code,

kbd,

kbd,

pre,

pre,

samp{

samp{

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

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

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

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

}

}

/**

/**

* Add the correct margin in IE 8.改进补充IE8下的margin

* Add the correct margin in IE 8.校正补充IE8下的margin

*/

*/

figure{

figure{

margin:1em 40px;

margin:1em 40px;

}

}

/**

/**

* 1. Add the correct box sizing in
Firefox.1.校对补充Firefox下的box-sizing

* 1. Add the correct box sizing in Firefox.1.校对补充Firefox下的box-sizing

* 2. Show the overflow in Edge and IE.2.在Edge 和 IE下溢出突显

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

*/

*/

hr{

hr{

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

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

height:0; /* 1 */

height:0; /* 1 */

overflow:visible; /* 2 */

overflow:visible; /* 2 */

}

}

/* Forms 表单

亚洲必赢官网,/* Forms 表单

==========================================================================
*/

========================================================================== */

/**

/**

* Change font properties to `inherit` in all browsers
(opinionated).改字体属性为后续“inherit”,针对富有浏览器(自定义)

* Change font properties to `inherit` in all browsers (opinionated).改字体属性为继承“inherit”,针对具有浏览器(自定义)

*/

*/

button,

button,

input,

input,

select,

select,

textarea{

textarea{

font:inherit;

font:inherit;

}

}

/**

/**

* Restore the font weight unset by the previous rule.恢复生机font
weight撤销以前的平整

* Restore the font weight unset by the previous rule.苏醒font weight撤消在此之前的规则

*/

*/

optgroup{

optgroup{

font-weight:bold;

font-weight:bold;

}

}

/**

/**

* Show the overflow in IE.在IE下溢出突显

* Show the overflow in IE.在IE下溢出突显

* 1. Show the overflow in Edge.1.在Edge下溢出呈现

* 1. Show the overflow in Edge.1.在Edge下溢出突显

* 2. Show the overflow in Edge, Firefox, and IE.2.在Edge, Firefox, 和
IE下溢出突显

* 2. Show the overflow in Edge, Firefox, and IE.2.在Edge, Firefox, 和 IE下溢出突显

*/

*/

button,

button,

input,/* 1 */

input,/* 1 */

select{ /* 2 */

select{ /* 2 */

overflow:visible;

overflow:visible;

}

}

/**

/**

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

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

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

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

*/

*/

button,

button,

input,

input,

select,

select,

textarea{ /* 1 */

textarea{ /* 1 */

margin:0;

margin:0;

}

}

/**

/**

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

* 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的继承

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

*/

*/

button,

button,

select{ /* 1 */

select{ /* 1 */

text-transform:none;

text-transform:none;

}

}

/**

/**

* Change the cursor in all browsers
(opinionated).改光标为手型,针对所有浏览器(自定义)

* Change the cursor in all browsers (opinionated).改光标为手型,针对具有浏览器(自定义)

*/

*/

button,

button,

[type=”button”],

[type=”button”],

[type=”reset”],

[type=”reset”],

[type=”submit”]{

[type=”submit”]{

cursor:pointer;

cursor:pointer;

}

}

/**

/**

* Restore the default cursor to disabled elements unset by the previous
rule.恢复生机disabled成分的暗中同意光标,废除之前的平整。

* Restore the default cursor to disabled elements unset by the previous rule.恢复生机disabled成分的暗许光标,取消在此此前的条条框框。

*/

*/

[disabled]{

[disabled]{

cursor:default;

cursor:default;

}

}

/**

/**

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

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

* controls in Android 4.1. 防护Web基特的bug(2)破坏原生`audio‘和
`video ` 控制条,在安卓4的本子下

*    controls in Android 4.1. 防护WebKit的bug(2)破坏原生`audio‘和 `video ` 控制条,在安卓4的版本下

* 2. Correct the inability to style clickable types in iOS.2.
改正在IOS下不得点击的bug

* 2. Correct the inability to style clickable types in iOS.2. 查对在IOS下不得点击的bug

*/

*/

button,

button,

html [type=”button”],/* 1 */

html [type=”button”],/* 1 */

[type=”reset”],

[type=”reset”],

[type=”submit”]{

[type=”submit”]{

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

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

}

}

/**

/**

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

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

*/

*/

button::-moz-focus-inner,

button::-moz-focus-inner,

input::-moz-focus-inner{

input::-moz-focus-inner{

border:0;

border:0;

padding:0;

padding:0;

}

}

/**

/**

* Restore the focus styles unset by the previous
rule.通过復苏原先的条条框框打消设置的focus样式。

* Restore the focus styles unset by the previous rule.通过苏醒原先的条条框框废除设置的focus样式。

*/

*/

button:-moz-focusring,

button:-moz-focusring,

input:-moz-focusring{

input:-moz-focusring{

outline:1px dotted ButtonText;

outline:1px dotted ButtonText;

}

}

/**

/**

* Change the border, margin, and padding in all browsers
(opinionated).更改border, margin, 和 padding,针对具有的浏览器(自定义)

* Change the border, margin, and padding in all browsers (opinionated).更改border, margin, 和 padding,针对富有的浏览器(自定义)

*/

*/

fieldset{

fieldset{

border:1px solid #c0c0c0;

border:1px solid #c0c0c0;

margin:0 2px;

margin:0 2px;

padding:0.35em 0.625em 0.75em;

padding:0.35em 0.625em 0.75em;

}

}

/**

/**

* 1. Correct the text wrapping in Edge and
IE.1.矫正Edge和IE中的文字换行。

* 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`要素的字体颜色继承。

* 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

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

* `fieldset` elements in all browsers.3. 移除padding针对所有浏览器

*    `fieldset` elements in all browsers.3. 移除padding针对富有浏览器

*/

*/

legend{

legend{

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

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

color:inherit; /* 2 */

color:inherit; /* 2 */

display:table; /* 1 */

display:table; /* 1 */

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

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

padding:0; /* 3 */

padding:0; /* 3 */

white-space:normal; /* 1 */

white-space:normal; /* 1 */

}

}

/**

/**

* Remove the default vertical scrollbar in
IE.移除IE浏览器中暗许的垂直滚动条

* Remove the default vertical scrollbar in IE.移除IE浏览器中暗许的垂直滚动条

*/

*/

textarea{

textarea{

overflow:auto;

overflow:auto;

}

}

/**

/**

* 1. Add the correct box sizing in IE 10-.1.纠正补充box sizing,在IE
10-浏览器

* 1. Add the correct box sizing in IE 10-.1.修正补充box sizing,在IE 10-浏览器

* 2. Remove the padding in IE 10-.2.移除padding在IE 10-浏览器

* 2. Remove the padding in IE 10-.2.移除padding在IE 10-浏览器

*/

*/

[type=”checkbox”],

[type=”checkbox”],

[type=”radio”]{

[type=”radio”]{

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

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

padding:0; /* 2 */

padding:0; /* 2 */

}

}

/**

/**

* Correct the cursor style of increment and decrement buttons in
Chrome.考订在Chrome递增和递减按钮光标样式

* Correct the cursor style of increment and decrement buttons in Chrome.校对在Chrome递增和递减按钮光标样式

*/

*/

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

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

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

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

height:auto;

height:auto;

}

}

/**

/**

* Correct the odd appearance of search inputs in Chrome and
Safari.考订search在Chrome和Safari古怪的楷模

* Correct the odd appearance of search inputs in Chrome and Safari.矫正search在Chrome和Safari古怪的规范

*/

*/

[type=”search”]{

[type=”search”]{

-webkit-appearance:textfield;

-webkit-appearance:textfield;

}

}

/**

/**

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

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

* Safari on OS X.移除padding和撤废按钮在Chrome OS X 和 Safari OS X。

* Safari on OS X.移除padding和撤回按钮在Chrome OS X 和 Safari OS X。

*/

*/

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

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

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

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

-webkit-appearance:none;

-webkit-appearance:none;

}

}

压缩版:

压缩版:

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

/*! 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%}

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

body{margin:0}

body{margin:0}

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

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

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

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

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

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

progress{vertical-align:baseline}

progress{vertical-align:baseline}

[hidden],template{display:none}

[hidden],template{display:none}

a{background-color:transparent}

a{background-color:transparent}

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

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

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

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

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

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

dfn{font-style:italic}

dfn{font-style:italic}

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

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

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

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

small{font-size:80%}

small{font-size:80%}

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

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

sub{bottom:-.25em}

sub{bottom:-.25em}

sup{top:-.5em}

sup{top:-.5em}

img{border-style:none}

img{border-style:none}

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

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

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

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

figure{margin:1em 40px}

figure{margin:1em 40px}

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

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

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

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

optgroup{font-weight:700}

optgroup{font-weight:700}

button,input,select{overflow:visible}

button,input,select{overflow:visible}

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

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

button,select{text-transform:none}

button,select{text-transform:none}

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

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

[disabled]{cursor:default}

[disabled]{cursor:default}

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

[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-focus-inner,input::-moz-focus-inner{padding:0;border:0}

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

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

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

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}

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

textarea{overflow:auto}

textarea{overflow:auto}

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

[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=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}

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

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

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

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

网站地图xml地图