实现自适应的正方形?

  • 使用vw, vh

  • width百分比, height: 0padding-top(bottom): 50%

 

原文地址:https://www.cnblogs.com/programb/p/14068661.html