*, *::before, *::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html, body {
height: 100%;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
input, button, textarea, select {
font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
#root, #__next {
isolation: isolate;
}
CSS Reset - 2019's most common CSS Resets to copy/paste, with documentation / tutorials
现代 CSS 解决方案:Modern CSS Reset · Issue #176 · chokcoco/iCSS
sanitize.css: 提供一致的、跨浏览器的 HTML 元素默认样式以及有用的默认样式
reseter.css: Normalize.css 和 CSS Reset 的未来替代方案
normalize.css: CSS Reset 的现代替代方案
modern-css-reset: 小而美,重置合理的默认值的现代 CSS Reset 方案