We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
如何实现一个自适应的正方形?
千锋教育
方法1:利用 CSS3 的 vw 单位
vw 会把视口的宽度平均分为 100 份
方法2:利用 margin 或者 padding 的百分比计算是参照父元素的 width 属性