采用流式布局
<div class="sheb_img">
<div class="left"></div>
<div class='right'>11</div>
</div>
.sheb_img{
background:
#E5E1E1;
display:
flex;
justify-content:
center;
align-items:
center;
}
.left{
flex:
1;
-webkit-flex:
1;
background:
url(../images/shoubiaoblue.png);
background-size:
86% 100%;
height:
10rem;
max-width:
16rem;
background-repeat:
no-repeat;
margin-left:
1%;
margin-top:
2%;
margin-bottom:
2%;
}
.rig{
margin-right:
15px;
}
转载于:https://www.cnblogs.com/xiaoQ0725/p/8663256.html
相关资源:JAVA上百实例源码以及开源项目