html样式清除

/*
*2018-2-26
*IT客栈
*一共五种样式,可选一种使用,1为雅虎清空样式。其他为个人收藏。
*网络下载地址:
*/
1.

html{color:#000;background:#FFF}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}
table{border-collapse:collapse;border-spacing:0}
fieldset,img{border:0}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}
ol,ul{list-style:none}
caption,th{text-align:left}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
q:before,q:after{content:''}
abbr,acronym{border:0;font-variant:normal}
sup{vertical-align:text-top}
sub{vertical-align:text-bottom}
input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;*font-size:100%}
legend{color:#000}
#yui3-css-stamp.cssreset{display:none}

2.
/公共样式–开始/

html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {
    margin: 0;
    padding: 0;
}

*{box-sizing: border-box;}

html, body {
    min-height: 100%;
}


body {
    font-family: "Microsoft YaHei";
    font-size:14px;
    color:#333;
}
h1, h2, h3, h4, h5, h6{font-weight:normal;}
ul,ol {
    list-style: none;
}


img {
    border: none;
    vertical-align: middle;
}


a {
    text-decoration: none;
    color: #232323;
}


table {
    border-collapse: collapse;
    table-layout: fixed;
}


input, textarea {
    outline: none;
    border: none;
}


textarea {
    resize: none;
    overflow: auto;
}


.clearfix {
    zoom: 1;
}


.clearfix:after {
    content: ".";
    width: 0;
    height: 0;
    visibility: hidden;
    display: block;
    clear: both;
    overflow:hidden;
}


.fl {
    float: left
}


.fr {
    float: right
}


.tl {
    text-align: left;
}


.tc {
    text-align: center
}


.tr {
    text-align: right;
}


.ellipse {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inline{
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

3.

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,p {
 margin: 0;
 padding: 0;
 border: 0;
 outline: 0;
 font-size: 100%;
 vertical-align: baseline;
 background: transparent;
}

4.

html, body, div, span, applet, object, iframe,  
h1, h2, h3, h4, h5, h6, p, blockquote, pre,  
a, abbr, acronym, address, big, cite, code,  
del, dfn, em, img, ins, kbd, q, s, samp,  
small, strike, strong, sub, sup, tt, var,  
b, u, i, center,  
dl, dt, dd, ol, ul, li,  
fieldset, form, label, legend,  
table, caption, tbody, tfoot, thead, tr, th, td,  
article, aside, canvas, details, embed,  
figure, figcaption, footer, header, hgroup,  
menu, nav, output, ruby, section, summary,  
time, mark, audio, video {  
  margin: 0;  
  padding: 0;  
  border: 0;  
  font: inherit;  
  font-size: 100%;  
  vertical-align: baseline;  
}  

html {  
  line-height: 1;  
}  

ol, ul {  
  list-style: none;  
}  

table {  
  border-collapse: collapse;  
  border-spacing: 0;  
}  

caption, th, td {  
  text-align: left;  
  font-weight: normal;  
  vertical-align: middle;  
}  

q, blockquote {  
  quotes: none;  
}  
q:before, q:after, blockquote:before, blockquote:after {  
  content: "";  
  content: none;  
}  

a img {  
  border: none;  
}  

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

5.

body,div,ol,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,p,form,fieldset,legend,input{ margin:0; padding:0;}
h1,h2,h3,h4,h5,h6{ font-size:100%; font-weight:normal;}
ol,ul{ list-style:none;}
img,fieldset{ border:0 none; display:block;}

文章转载自 https://blog.csdn.net/u011896151/article/details/79387874

你可能感兴趣的:(html样式清除)