0
파일을 드래그 할 때 div의 배경색을 변경하는 스크립트가 있습니다.하지만 배경 이미지가 변경되도록 변경하고 싶습니다. '배경 이미지 변경 jquery
여기 제가 지금까지 작업해야하는 코드가 있습니다.
function dragover(e)
{
e.stopPropagation();
e.preventDefault();
f('.dropable').css({
backgroundColor : 'rgb(51, 51, 51)',
border : 0,
});
}
나는 시도했다, 그러나 작동하지 않았다.
function dragover(e)
{
e.stopPropagation();
e.preventDefault();
f('.dropable').css({
backgroundColor : 'rgb(51, 51, 51)',
border : 0,
backgroundImage','url(uploadimg.png)
});
}
backgroundImage 뒤에 쉼표가 2 개 추가되었습니다. –