实现自适应的正方形?

  • 使用vw, vh

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

 

posted @ 2020-12-21 19:12  咔啡  阅读(76)  评论(0编辑  收藏  举报