export const RecommendItem = styled.div`
width: 280px;
height: 50px;
background-size: contain;
background: url(图片地址);
`
因为background-size: contain;放在了图片的前面,所以不生效
调整顺序后完美显示
export const RecommendItem = styled.div`
width: 280px;
height: 50px;
background-size: contain;
background: url(图片地址);
`
因为background-size: contain;放在了图片的前面,所以不生效
调整顺序后完美显示