22智能在线
新记
怎么使用JS修改body的背景颜色和图片
如题所述
举报该文章
其他看法
第1个回答 2017-01-05
document.body.style.backgroundColor="red";
document.body.style.backgroundImage="url(xxx.jpg)";
相似回答
大家正在搜
相关问题
如何在js里面给body里面设背景色
Jquery设置body的背景图片怎么设置
如何利用js动态改变body的背景图片?想要个简单的个例子?
js 怎么改变在几张图片比如说三张作为body的背景图片然后...
如何利用js动态改变body的背景图片?想要个简单的个例子?
js更换body背景
我想在body里放一个背景图片,浏览的时候填充整个屏幕,请问...
javascript 修改body样式