53 lines
785 B
CSS
53 lines
785 B
CSS
/* 头尾各个页面相同的样式 */
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* 设置网页统一的字体大小、行高、字体系列相关属性 */
|
||
body {
|
||
font: 16px/1.5 "Microsoft Yahei", sans-serif;
|
||
color: #333;
|
||
}
|
||
|
||
/* 去除列表默认样式 */
|
||
ul,
|
||
ol {
|
||
list-style: none;
|
||
}
|
||
|
||
/* 去除默认的倾斜效果 */
|
||
em,
|
||
i {
|
||
font-style: normal;
|
||
}
|
||
|
||
/* 去除a标签默认下划线,并设置 */
|
||
a {
|
||
text-decoration: none;
|
||
color: #333;
|
||
}
|
||
|
||
/* 设置img的垂直对齐方式为居中对齐,去除img默认下间隙 */
|
||
img {
|
||
vertical-align: middle;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
/* 去除input默认样式 */
|
||
input {
|
||
border: none;
|
||
outline: none;
|
||
color: #333;
|
||
}
|
||
|
||
h1,
|
||
h2,
|
||
h3,
|
||
h4,
|
||
h5,
|
||
h6 {
|
||
font-weight: 400;
|
||
} |