<style>
/* 清除所有标签默认的内外间距 */
* {
padding: 0;
margin: 0;
/* 全变成怪异盒子 */
box-sizing: border-box;
}
/* 版心 */
.center{
/*
width: 1220px;
height: 100%;
margin:0 auto;
background-color: pink; */
}
/* 万能清除法 */
.clearfix::after{
content: "";
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
display: block;
clear: both;
}
/* 清除列表的默认样式 */
ul,
ol {
list-style: none;
}
/* 清除下划线 */
a,
u {
text-decoration: none;
}
/* 不加粗 */
b,
strong {
font-weight: 400;
}
/* 不倾斜 */
i,
em {
font-style: normal;
}
/* 不加粗 统⼀16px */
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 16px;
font-weight: 400;
}
/* 清除输⼊框的轮廓线 */
input {
outline: none;
}
</style>
标签初始化 reset.css
最新推荐文章于 2024-10-02 13:25:04 发布