.scale {
width: 100%;
padding-bottom: 56.25%;
height: 0;
position: relative;
}
.item {
position: absolute;
width: 100%;
height: 100%;
background-color: #499e56;
} 【CSS】实现宽高等比例自适应的矩形盒
本原创文章未经允许不得转载 | 当前页面:坏蛋格鲁 » 【CSS】实现宽高等比例自适应的矩形盒
坏蛋格鲁