css的配置文件reset的总结

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;
}
textarea{
  resize : none;
}
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;
}


html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
  width: 100%;
  height: 100%;
  font-size: 100px;
  overflow-x: hidden;
  overflow: auto;
  background-color: #fff;
  line-height: 1.375;
}


body {
  -moz-user-select: -moz-none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  max-width: 640px;
  font-size: 0.24rem;
  background-color: #fff;
  font-size: 0.12rem;
  color: #fff;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}


input {
  -webkit-box-sizing: border-box;
  border:none;
  outline: none;
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
}


a, lable, button {
  -webkit-tap-highlight-color: transparent;
}


a, a:hover, a:visited {
  text-decoration: none;
  color: #fff;
}


.hide {
  display: none !important;
}


input::-ms-input-placeholder {
  color: #8f8f8b;


}


input::-webkit-input-placeholder {
  color: #8f8f8b;
}


/*--------后面添加的--------*/
img{
width:100%;
}
.clearfix{
  *zoom:1;
}
.clearfix::after{
  content:'';
  display: block;
  height: 0;
  line-height: 0;
  visibility: hidden;
  clear:both;
}
.border-1px{
  position: relative;
}
.border-1px::after{
  position: absolute;
  left:0;
  bottom:0;
  width: 100%;
  content:'';
}
.fl{
float: left;
}
.fr{
float: right;
}
.hide{
display: none;
}
.show{
display: block;
}

你可能感兴趣的:(html+css)