본문 바로가기
카테고리 없음

Background image

by _션샤인 2024. 9. 1.

 

If you write Line 10,12 both -> the image is devided

because you call the image twice.

 

so if you want to put this image as a background

document.body.style.backgroundImage = `url('img/${chosenImage}')`;