分享自用的CSS重置表,base.css,含原子类
未分类
2015-04-29
梦魂
手机阅读

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,
th,
var {
font-style: normal;
font-weight: normal;
}
/* strong */
li {
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;
}
legend {
color: #000;
}
/* 字体大小 */
.f12 {
font-size: 12px;
}
.f14 {
font-size: 14px;
}
.f16 {
font-size: 16px;
}
/* line-height */
.lh20 {
line-height: 20px;
}
.lh24 {
line-height: 24px;
}
.lh32 {
line-height: 32px;
}
.lh48 {
line-height: 48px;
}
.lh54 {
line-height: 54px;
}
/* type */
.bold {
font-weight: bold;
}
/* 宽度 */
.w {
width: 100%;
}
.win {
width: inherit;
}
.w1002 {
width: 1002px;
}
.w1022 {
width: 1022px;
}
/* margin */
.m10 {
margin: 10px;
}
.m20 {
margin: 20px;
}
.mt10 {
margin-top: 10px;
}
.mt20 {
margin-top: 20px;
}
.ml10 {
margin-left: 10px;
}
.ml20 {
margin-left: 20px;
}
/* padding */
.p10 {
padding: 10px;
}
.p20 {
padding: 20px;
}
/* 定位 */
.bc {
margin-left: auto;
margin-right: auto;
}
.left {
float: left;
}
.right {
float: right;
}
.block {
display: block;
}
.clear {
clear: both;
}
/* background */
.bfff {
background-color: #fff;
}
.bin {
background-color: inherit;
}
/* a */
.nounder {
color: inherit;
text-decoration: none;
}
.transition {
-webkit-transition: all 0.3s ease-in-out 0s;
-moz-transition: all 0.3s ease-in-out 0s;
-o-transition: all 0.3s ease-in-out 0s;
transition: all 0.3s ease-in-out 0s;
}