problem description
backgroundSize cannot be used in the jsx of react. How to achieve the same effect: fixed width and height, 100% width of the picture, height beyond hiding, so that the picture will not deform
related codes
<div style={{
background: `url("${head}")`,
backgroundRepeat:"no-repeat",
width: "3.75rem",
height: "3rem",
backgroundSize:"cover"
}}></div>