74

CSS实现水平垂直居中的10种方式(史上最全)

 5 years ago
source link: https://juejin.im/post/5b9a4477f265da0ad82bf921
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
划重点,这是一道面试必考题,很多面试官都喜欢问这个问题,我就被问过好几次了 要实现上图的效果看似很简单,实则暗藏玄机,本文总结了一下CSS实现水平垂直居中的方式大概有下面这些,本文将逐一介绍一下,我将本文整理成了一个github仓库,欢迎大家star 仅居中

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK