冲葱博客
当前位置: 交流学习 > 各大网站CSS代码初始化

各大网站CSS代码初始化

2017-12-28 分类:交流学习 作者:Admin 阅读(1587)

百度 CSS样式初始化


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}
html{color:#000;overflow-y:scroll;overflow:-moz-scrollbars}
body,button,input,select,textarea{font:12px arial}
h1,h2,h3,h4,h5,h6{font-size:100%}
em{font-style:normal}
small{font-size:12px}
ul,ol{list-style:none}
a{text-decoration:none}
a:hover{text-decoration:underline}
legend{color:#000}
fieldset,img{border:0}
button,input,select,textarea{font-size:100%}
table{border-collapse:collapse;border-spacing:0}
img{-ms-interpolation-mode:bicubic}
textarea{resize:vertical}
label,button{cursor:pointer}
pre.wordwrap{white-space:pre-wrap}
body{text-align:center}
body,form{position:relative;z-index:0}
td{text-align:left}
img{border:0}

QQ CSS样式初始化


1
2
3
4
5
6
7
8
body,dd,dl,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,ol,p,select,td,textarea,th,ul{margin:0;padding:0}
body{font:12px SimSun,"Arial Narrow",HELVETICA;background:#fff;-webkit-text-size-adjust:100%}
a{color:#172c45;text-decoration:none}
a:hover{color:#cd0200;text-decoration:underline}
em{font-style:normal}li{list-style:none}
img{vertical-align:middle}
table{border-collapse:collapse;border-spacing:0}
p{word-wrap:break-word}

新浪 CSS样式初始化


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
html,body,ul,li,ol,dl,dd,dt,p,h1,h2,h3,h4,h5,h6,form,fieldset,legend,img{margin:0;padding:0}
fieldset,img{border:0}
img{display:block}
address,caption,cite,code,dfn,th,var{font-style:normal;font-weight:normal}
ul,ol{list-style:none}
input{padding-top:0;padding-bottom:0;font-family:"SimSun","宋体"}
input::-moz-focus-inner{border:0;padding:0}
select,input{vertical-align:middle}
select,input,textarea{font-size:12px;margin:0}
input[type="text"],input[type="password"],textarea{outline-style:none;-webkit-appearance:none}
textarea{resize:none}table{border-collapse:collapse}
body{color:#333;padding:5px 0;font:12px/20px "SimSun","宋体","Arial Narrow",HELVETICA;background:#fff}
a{color:#666;text-decoration:none}
a:visited{color:#666}
a:hover,a:active,a:focus{color:#ff8400;text-decoration:underline}

搜狐 CSS样式初始化


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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;vertical-align:baseline}
 audio:not([controls]){display:none;height:0}
 [hidden],template{display:none}
 a{background-color:transparent}
 a:active,a:hover{outline:0}
 abbr[title]{border-bottom:1px dotted}
 b,strong{font-weight:700}
 dfn{font-style:italic}
 h1{font-size:2em;margin:.67em 0}
 mark{background:#ff0;color:#000}
 small{font-size:80%}
 sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
 sup{top:-.5em}
 sub{bottom:-.25em}
 img{border:0}
 svg:not(:root){overflow:hidden}
 figure{margin:1em 40px}
 hr{box-sizing:content-box;height:0}
 pre{overflow:auto}
 code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}
 button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}
 button{overflow:visible}
 button,select{text-transform:none}
 button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}
 button[disabled],html input[disabled]{cursor:default}
 button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
 input{line-height:normal}
 input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}
 input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}
 input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}
 input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}
 fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}
 legend{border:0;padding:0}
 textarea{overflow:auto}
 optgroup{font-weight:700}
 table{border-collapse:collapse;border-spacing:0}
 td,th{padding:0}
 a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,dialog,div,dl,dt,em,embed,fieldset,figcaption,figure,font,footer,form,h1,h2,h3,h4,h5,h6,header,hr,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,meter,nav,object,ol,output,p,pre,progress,q,rp,rt,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,time,tt,u,ul,var,video{border:0;margin:0;padding:0;font-size:100%}
 table,tbody,td,tfoot,th,thead,tr{margin:0;padding:0;font-size:100%}
 ol,ul{list-style:none}
 li{display:list-item}
 h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}
 input{border:0;padding:0;margin:0;outline:0}
 body,input{font-family:"PingFang SC",Arial,"\5FAE\8F6F\96C5\9ED1","\5B8B\4F53",simsun,sans-serif}
 body{-webkit-font-smoothing:antialiased;margin:0 auto;background:#fff;color:#666;font-size:12px;line-height:1.667}
 a{color:#191919;text-decoration:none}
 a:hover{color:#c9141d;text-decoration:none}
 em{font-style:normal}
 header{min-width:1180px}

网易 CSS样式初始化


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 body{line-height:1.5;font-family:arial,"\5b8b\4f53";background:#fff;font-size:12px}
 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0}
 h1,h2,h3,h4,h5,h6{font-size:100%}
 ol,ul{list-style:none}
 address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:normal}
 input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;*font-size:100%}
 fieldset,img,a img,:link img,:visited img{border:0}
 a{text-decoration:none}
 a:hover{text-decoration:underline}
 :focus{outline:0}
 table{border-collapse:collapse;border-spacing:0}
 caption,th{text-align:left}
 sup,sub{font-size:100%;vertical-align:baseline}
 blockquote,q{quotes:none}
 blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}

淘宝网 CSS样式初始化


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}
  body,button,input,select,textarea{font:12px/1.5 tahoma,arial,'Hiragino Sans GB','\5b8b\4f53',sans-serif}
  h1,h2,h3,h4,h5,h6{font-size:100%}
  address,cite,dfn,em,var{font-style:normal}
  code,kbd,pre,samp{font-family:courier new,courier,monospace}
  small{font-size:12px}
  ol,ul{list-style:none}
  a{text-decoration:none}
  a:hover{text-decoration:underline}
  sup{vertical-align:text-top}
  sub{vertical-align:text-bottom}
  legend{color:#000}
  fieldset,img{border:0}
  button,input,select,textarea{font-size:100%}
  table{border-collapse:collapse;border-spacing:0}
  button{border-radius:0;}

京东 CSS样式初始化


1
2
3
4
5
6
7
8
9
*{margin:0;padding:0}
em,i{font-style:normal}
li{list-style:none}
img{border:0;vertical-align:middle}
button{cursor:pointer}
a{color:#666;text-decoration:none}
a:hover{color:#c81623}
button,input{font-family:Microsoft YaHei,tahoma,arial,Hiragino Sans GB,\\5b8b\4f53,sans-serif}
body{-webkit-font-smoothing:antialiased;background-color:#fff;font:12px/1.5 Microsoft YaHei,tahoma,arial,Hiragino Sans GB,\\5b8b\4f53,sans-serif;color:#666}

中华网 CSS样式初始化


1
2
3
4
5
6
7
8
html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,cite,code,del,em,img,q,small,strong,sub,sup,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,tr,th,td{ margin:0; padding:0; border:0; font-size:100%;}
body{ background:#fff; color:#000; font:12px/1.5em simsun; text-align:center;}
ol,ul{ list-style:none;}
cite,em,strong,th,h1,h2,h3,h4,h5,h6{ font-style:normal; font-weight:normal;}
table{ border-collapse:collapse; border-spacing:0;}
input,textarea,select,button{ font-size:100%;}
a{ color:#000; text-decoration:none;}
a:hover{ color:#b31515; text-decoration:underline;}

人民网 CSS样式初始化


1
2
3
4
5
6
7
8
9
10
body{padding:0;margin:0;font:normal 12px/180% "SimSun";color:#333;background:#fff}
h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,button,input,textarea,th,td{margin:0;padding:0}
div{margin:0 auto;text-align:left;font:normal 12px/180% "SimSun"}
a:link,a:visited{color:#333;text-decoration:none}
a:hover{color:#e60012;text-decoration:none}
img{border:none}ol,ul,li{list-style:none}
i{font-style:normal}
input,img{vertical-align:middle}
input[type="button"],input[type="submit"]{vertical-align:middle;cursor:pointer}
article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block;margin:0 auto}

爱奇艺 CSS样式初始化


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
html{-webkit-overflow-scrolling:touch;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,body,div,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,fieldset,legend,button,input,textarea,form,th,td{margin:0;padding:0;vertical-align:baseline;outline:0}
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1}
body,button,input,select,textarea{font:12px/1.5 Tahoma,Helvetica,Arial,"\5FAE\8F6F\96C5\9ED1",sans-serif}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
address,cite,dfn,em,var,i{font-style:normal}
code,kbd,pre,samp,tt{font-family:"Courier New",monospace,serif}
small{font-size:80%}
ul,ol{list-style:none outside none}
a{text-decoration:none}
a:hover{text-decoration:underline;outline:0}
a:active{text-decoration:none;outline:0}
a:focus{outline:0}
abbr[title],acronym[title]{border-bottom:1px dotted;cursor:help}
q:before,q:after{content:''}
mark{background:#ff0;color:#000}
pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sup{top:-0.5em}
sub{bottom:-0.25em}
legend{border:0;padding:0;white-space:normal;*margin-left:-7px}
fieldset,iframe{border:0 none}
img{border:0 none;vertical-align:middle;-ms-interpolation-mode:bicubic}
button,input,select,textarea{font-family:inherit;font-size:100%;vertical-align:baseline;*vertical-align:middle}
button,input[type=button],input[type=submit],input[type="reset"]{-webkit-appearance:button;cursor:pointer;*overflow:visible}
button[disabled],input[disabled]{cursor:default}button::-moz-focus-inner,button::-moz-focus-outer,input::-moz-focus-inner,input::-moz-focus-outer{border:0 none;padding:0;margin:0}
input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}
textarea{overflow:auto;vertical-align:top;resize:vertical}
table{border-collapse:collapse;border-spacing:0}
strong{font-weight:normal}

「如果觉得我的文章对您有用,请帮助本站成长」

赞(0) 打赏

支付宝
微信
0

支付宝
微信
标签:

上一篇:

下一篇:

你可能感兴趣

共有 0 条评论 - 各大网站CSS代码初始化

博客简介

冲葱博客是一个个人所见所闻分享博客,喜欢关注互联网各种行业知识。

友情链接

他们同样是一群网虫,却不是每天泡在网上游走在淘宝和网游之间、刷着本来就快要透支的信用卡。他们或许没有踏出国门一步,但同学却不局限在一国一校,而是遍及全球!申请交换友链

站点统计

  • 文章总数: 54 篇
  • 分类数目: 14 个
  • 独立页面: 1 个
  • 链接总数: 2 个
  • 标签总数: 138 个
  • 建站时间: 2739 天
  • 访问总量: 7158 次
  • 最近更新: 2022年1月25日
服务热线:
 

 QQ在线交流

 旺旺在线