1. 样式初始化
目的:
- 消除不同浏览器对 html 文本呈现的差异
- 清除标签默认样式
body {
height: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue,
Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
html {
height: 100%;
}
#app {
height: 100%;
overflow: auto;
& > .layout {
height: 100%;
}
}
* {
margin: 0;
padding: 0;
}
*,
*:before,
*:after {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
a,
a:focus,
a:hover {
color: inherit;
outline: none;
text-decoration: none;
cursor: pointer;
}
div:focus {
outline: none;
}
label {
font-weight: 700;
}
ul,
ol,
li {
list-style-type: none;
}
小于 1 分钟