<style>
.box{
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
/* padding-bottom: 56.25%;
height: 0; */
height: 56.25vw;
background-color: red;
}
</style>
<body>
<div class="box"></div>
</body>
css实现宽度自适应100%,宽高16:9的比例的矩形
最新推荐文章于 2023-09-12 10:37:51 发布