div{ width:50%; height:0; margin-bottom:50%;//设置的是页面宽度的50% } 转载于:https://www.cnblogs.com/zj911005/p/9025625.html