.logo {
background: url(~@/assets/images/logo.svg) no-repeat center center/contain;
width: 117px;
height: 24px;
margin: 0 20px;
}
<a class="logo" href="#"></a>
比较实用的书写方式
.logo {
background: url(~@/assets/images/logo.svg) no-repeat center center/contain;
width: 117px;
height: 24px;
margin: 0 20px;
}
<a class="logo" href="#"></a>
比较实用的书写方式