CSS中百分比是相对于谁?

2018-04-16
阅读 2 分钟
5.3k
1. 用到百分比的属性: width, height margin, padding top, right, bottom, left transform - translate background-position, background-size 2. containing block 2.1 为什么要知道containing block MDN: The size and position of an element are often impacted by its containing block. Most often, the containi...