验证中...
Languages: CSS
Categories: CSS 技巧
Latest update 2019-03-26 11:44
css定宽高比
Raw Copy
<div class="rate"></div>
<style>
.rate{
width:100px;
background-color: #f00;
display: flex;
}
.rate:after{
content:'';
padding-top:100%;
}
</style>

Comment list( 0 )

You need to Sign in for post a comment

Help Search