Reboot 重置样式

Reboot 建立在 Normalize 的基础上,重置一些浏览器默认值。

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  color: #515355;
  text-decoration: none;
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}
a:hover,
a:active {
  color: inherit;
  outline: 0;
  text-decoration: none;
}
a[href] {
  cursor: pointer;
}
a[href]:hover {
  color: #409eff;
}
a[href].underline:hover {
  text-decoration: underline;
}
div,
article,
aside,
details,
dialog,
figcaption,
figure,
footer,
header,
hgroup,
menu,
main,
nav,
section,
summary {
  display: block;
}
b,
strong {
  font-weight: 700;
}
audio,
canvas,
output,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
:focus {
  outline: 0;
}
ol,
ul {
  list-style: none;
}
hr {
  height: 0;
  overflow: visible;
}
i,
em,
dfn {
  font-style: normal;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
caption,
table,
tbody,
td,
tfoot,
th,
thead,
tr {
  font-family: inherit;
  font-size: 100%;
}
button::after {
  border: none;
}
button,
input,
optgroup,
select,
textarea {
  line-height: 1.15;
  font-family: inherit;
  font-size: 100%;
}
button {
  appearance: none;
  border-style: none;
  outline: 0;
}
textarea {
  overflow: auto;
  vertical-align: top;
  resize: vertical;
}
img {
  max-width: 100%;
  display: block;
  position: relative;
  border-style: none;
  will-change: transform;
}
html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  width: 100%;
  height: 100%;
}
body {
  text-align: left;
  color: #515355;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Helvetica, 'Microsoft YaHei', '微软雅黑', FreeSans,
    'Droid Sans', 'wenquanyi micro hei', 'PingFang SC', 'Hiragino Sans GB',
    'Hiragino Sans GB W3', Arial, sans-serif;
  font-size: 14px;
  font-weight: 1.5;
  background-color: #ffffff;
}

💡 提示

只需引入 reboot.css 样式文件即可。