前端面试
文章平均质量分 62
Bliarjie_123
这个作者很懒,什么都没留下…
展开
-
2021-04-19
Q1. 元素水平居中的实现方法 <body> <div class="father"> <div class="son"></div> </div> </body> 一. 使用弹性盒模型flex实现 .father { display: flex; justify-content: center; // 水平 align-items: center; // 垂直 } 二. 使用原创 2021-04-19 17:46:56 · 202 阅读 · 0 评论 -
2021-03-23
一. 前端加载优化相关工作? Q1.做性能优化的目的是什么? 首屏时间 首次可交互时间 首次有意义内容渲染时间 页面性能检测:https://developers.google.com/speed/pagespeed/insights/ pollyfill:https://polyfill.io/v3/url-builder/ Q2.性能优化方式有哪些? 只请求当前需要的资源 异步加载, 懒加载,pollyfill 缩减资源体积 打包压缩 webpack gzip 1.2M 300K 图片格式的原创 2021-03-23 12:58:36 · 232 阅读 · 0 评论