- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 2020前端面试
一、CSS性能优化 1.尽量使用缩写:p { margin: 1px 2px 3px 4px; } 2.查找并删除未使用的 CSS 3. 文件压缩 4.避免需要性能要求的属性(border-radius box-shadow transform filter :nth-child position: fixed;) 5. 优化重排与重绘 避免不必要的重绘:当元素的外观(如color,background,visibility等属性)发生改变时,会触发重绘。在网站的使用过程中,重绘是无法避免的。不过,浏览
2020-12-15 23:40:55 427
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人