item
reset 类
浏览器默认样式
- chrome 浏览器中,进行默认填充时 input 会填充黄色背景
1 | input:-webkit-autofill { |
- chrome placeholder 默认字体颜色
1 | input::placeholder { |
- chrome 中 search input 后面的清空图标清除
1 | input[type="search"]::-webkit-search-cancel-button { |
- input 的默认样式
1 | input { |
布局类
- 页面导航 fixed 的时候,元素将会覆盖在滚动条上
1 | :root { |
常用 reset
- 清除浏览器差异 normalize.css
- 使用程序员偏好的样式 sanitize.css
- 清空浏览器默认样式 reset
- 使用 postcss 管理 normalize 与 sanitize 的使用 postcss-normalize
- 自用 reset 样式
1 | body { |