首页 > 其他 > 详细

前端面试总结

时间:2021-03-16 10:48:28      阅读:21      评论:0      收藏:0      [点我收藏+]

HTML

CSS

元素水平垂直居中的方法

1.flex

.outer {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
}

2.absolute + transform

.outer {
  position: relative;
}

.inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

JS

网络

算法

React/Vue/微信小程序

前端面试总结

原文:https://www.cnblogs.com/zhahuhu/p/14540888.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!