我必须使用JavaScript更改div的背景。我已经设法做到这一点, 使用document.getElementById('test').style.background = "url('img/test.jpg')";
使用javascript更改背景
现在,我该如何改变其他属性,如重复,滚动等?
我要用于测试的CSS是像
background: #f00 url('img/test.jpg') no-repeat fixed 10px 10px;
我不能使用jQuery,因为我不希望包括库只是一个小事情。