/*初始化类*/
@charset "UTF-8";
html {
font-family: sans-serif;
font-size: 20px;
}
html,
body {
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-user-select: none;
width: 100%;
height: 100%;
}
body {
line-height: 1.5;
font-size: 0.8rem;
color: #212121;
background-color: #f5f5f5;
outline: 0;
}
html,
body,
header,
section,
footer,
div,
ul,
ol,
li,
img,
a,
span,
em,
del,
legend,
center,
strong,
var,
fieldset,
form,
label,
dl,
dt,
dd,
cite,
input,
hr,
time,
mark,
code,
figcaption,
figure,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
border: 0;
padding: 0;
font-style: normal;
}
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
outline: none;
}
@media only screen and (min-width: 400px) {
html {
css初始化文件
最新推荐文章于 2024-08-04 22:25:38 发布
本文介绍了CSS样式初始化的重要性,以及如何创建一个基本的CSS初始化文件,以确保不同浏览器间的一致性和减少样式冲突。通过重置默认样式,开发者可以更好地控制网页的布局和表现。主要内容包括重置字体、margin、padding、border、列表样式等。
摘要由CSDN通过智能技术生成