1. 程式人生 > >頁面重置reset.css

頁面重置reset.css

/*清除預設樣式*/
body,html,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,input,a,p,textarea,td,button,embed{
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei";
    box-sizing: border-box;
}
html,body{width:100%;height: 100%;}
table{width:100%;border-collapse:collapse;border-spacing:0;border-spacing:0; }
ul,ol,li{ list-style: none; }
a{ text-decoration: none; display: inline-block; color: #000; }
body { line-height: 1; }
input{ border: 0; outline: 0; }
img{ max-width: 100%; border: none; }
tr td,tr th { word-break: break-all; }
.left{ float: left; }
.right{ float: right; }
/*清除浮動*/
.clearfloat:after{
	content: "";
  display: block;
  clear: both;
  visibility: hidden;
  height: 0;
  width: 0;
}
.pullleft{ text-align: left; }
.pullcenter{ text-align: center; }
.pullright{ text-align: right; }