CSS重置reset.css

重置样式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
body,
nav,
dl,
dt,
dd,
p,
h1,
h2,
h3,
h4,
ul,
ol,
li,
input,
button,
textarea,
footer {
margin: 0;
padding: 0
}
body {
font: 100%/1.5 Helvetica, Arial, sans-serif, \5FAE\8F6F\96C5\9ED1;
-webkit-text-size-adjust: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%
}
form {
display: inline
}
ul,
ol {
list-style: none
}
img {
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}
button,
input,
select,
textarea {
font-size: 100%;
vertical-align: middle;
outline: none;
}
textarea {
resize: none
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
-moz-appearance: button
}
input:focus:-moz-placeholder,
input:focus::-webkit-input-placeholder {
color: transparent
}
button::-moz-focus-inner,
input::-moz-focus-inner {
padding: 0;
border: 0
}
table {
border-collapse: collapse;
border-spacing: 0
}
.fl {
float: left;
}
.fr {
float: right;
}
.hide {
display: none;
}
.show {
display: block;
}
.ellipsis {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden
}
.break {
word-break: break-all;
word-wrap: break-word
}
.clearfix {
*zoom: 1;
}
.clearfix:after {
content: "\200B";
display: block;
height: 0;
clear: both;
}
/* 垂直居中模块 */

.vimg {
display: block;
text-align: center;
*font-family: Arial;
*font-size: expression(this.clientHeight*.895+"px");
line-height: 100%;
overflow: hidden;
}
.vimg img {
_width: expression((this.width>this.height && this.width>=this.parentNode.offsetWidth) ? this.parentNode.offsetWidth+'px': true);
_height: expression((this.width<=this.height && this.height>=this.parentNode.offsetHeight) ? this.parentNode.offsetHeight+'px': true);
max-width: 100%;
max-height: 100%;
vertical-align: middle;
}
.vimg:after {
content: "\200B";
display: inline-block;
width: 0;
height: 100%;
vertical-align: middle;
}
header,
footer,
article,
section,
nav,
menu,
hgroup {
display: block;
clear: all;
}
/* 布局样式 */

body {
color: #333
}
a {
text-decoration: none;
color: #333
}