图标是前端维护,移动端,需要切2倍图,我用背景图定位让logo居中对齐,但是background-size不好设。有没有办法让background-size变为图片的一半呢?
display:flex;justify-content:center;align-items:center
backgroundsize: 50% 50%;
.item{
......
position:relative;
}
img.logo{
width:50%;
height:auto;
max-height:80%;
posisiton:absolute;
margin:auto;
left:0;
right:0;
top:0;
bottom:0;
}
PS:你们公司的前端不管这个???前端不是就是写这个的么???