87

你知道我们平时在CSS中写的%都是相对于谁吗?

 6 years ago
source link: https://juejin.im/post/5b0bc994f265da092918d421
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.
     0.引言在我们编写CSS的时候,经常会用到百分比赋值(%)实现自适应。像我们最常使用的流式布局设计模式,基本所有的column的宽度都是通过%来取值的。或者比如经常会遇到的元素水平垂直居中问题,我们常常会使用下面这样的C

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK