前端实现正方形模块并且自适应

div{

  width:50%;

  height:0;

  margin-bottom:50%;//设置的是页面宽度的50%

}

posted @ 2018-05-11 17:06  镜镜哒  阅读(423)  评论(0编辑  收藏  举报