我使用這個document.style
document.body.style.backgroundImage = "url('okeball-HD.png')";
document.body.style.backgroundPosition = '100% 100%';
document.body.style.backgroundRepeat = 'no-repeat';
document.body.style.backgroundSize = 'cover';
問題尋求幫助的代碼必須包括必要的重現它最短的代碼**在問題本身** 。請參閱[**如何創建一個最小,完整和可驗證示例**](http://stackoverflow.com/help/mcve) –
@Carlo:如果您有解決方案,您應該接受幫助您的答案。 –