Macro Da

每天学一点,成长多一点!

各大网站的CSS初始化代码集合

2018年04月10日更新整理

腾讯官网CSS初始化代码

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{background:#fff;font:12px SimSun,"Arial Narrow",HELVETICA;-webkit-text-size-adjust:100%;}
a{color:#172c45;text-decoration:none;}
a:hover{color:#cd0200;text-decoration:underline;}
em{font-style:normal;}<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
li{list-style:none;}
img{border:0;vertical-align:middle;}
table{border-collapse:collapse;border-spacing:0;}
p{word-wrap:break-word;}

 

新浪首页CSS初始化代码

body,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,html,img,legend,li,ol,p,ul{margin:0;padding:0;}
fieldset,img{border:0;}
img{display:block;}
address,caption,cite,code,dfn,th,var{font-weight:400;font-style:normal;}
ol,ul{list-style:none;}
input{padding-top:0;padding-bottom:0;font-family:SimSun,"宋体";}
input::-moz-focus-inner{padding:0;border:0;}
input,select{vertical-align:middle;}
input,select,textarea{margin:0;font-size:12px;}
input[type=text],input[type=password],textarea{outline-style:none;-webkit-appearance:none;}
textarea{resize:none;}
table{border-collapse:collapse;}
body{padding:5px 0;background:#fff;color:#333;font:12px/20px SimSun,"宋体","Arial Narrow",HELVETICA;}
.clearfix:after{clear:both;display:block;visibility:hidden;height:0;content:".";}
.clearfix{zoom:1;}
.clearit{clear:both;overflow:hidden;height:0;font-size:0;}
.fl{float:left;}
.fr{float:right;}
a{color:#666;text-decoration:none;}
a:visited{color:#666;}
a:active,a:focus,a:hover{color:#ff8400;text-decoration:underline;}

 

淘宝首页CSS初始化代码

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','宋体',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初始化

*{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:#e33333;}
button,input{font-family:Microsoft YaHei,Heiti SC,tahoma,arial,Hiragino Sans GB,"宋体",sans-serif;}
body{background-color:#fff;color:#666;font:12px/1.5 Microsoft YaHei,Heiti SC,tahoma,arial,Hiragino Sans GB,"宋体",sans-serif;-webkit-font-smoothing:antialiased;}
.hide,.none{display:none;}
.clearfix:after{clear:both;display:block;visibility:hidden;height:0;content:".";}

 

网易官网CSS初始化代码

body{background:#fff;font-size:12px;font-family:arial,"宋体";line-height:1.5;}
blockquote,body,button,code,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
ol,ul{list-style:none;}
address,caption,cite,code,dfn,em,optgroup,strong,th,var{font-style:normal;}
button,input,optgroup,option,select,textarea{font-weight:inherit;font-style:inherit;font-size:inherit;font-family:inherit;}
:link img,:visited img,a img,fieldset,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;}
sub,sup{vertical-align:baseline;font-size:100%;}
blockquote,q{quotes:none;}
blockquote:after,blockquote:before,q:after,q:before{content:'';content:none;}
.clear,.clearfix:after{clear:both;display:block;overflow:hidden;height:0;}
.clearfix:after{visibility:hidden;content:".";}
点赞

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注