[React] css로 배경이미지(background image) 넣는 샘플코드

By | 10월 12, 2022
<div
  style={{
    backgroundImage: `url("http://blabla/bg.png")`,
    backgroundPosition: 'center',
    backgroundRepeat: 'no-repeat',
    backgroundSize: 'cover',
  }}
></div>
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments