JS backgroundImage控制 2020-02-16 分类:JavaScript 标签Tags:js,控制,实现,代码,如下,function,obj,style,csstext,background,url,gif,n,o,repeat
实现代码如下:function changeBgImage(obj){ obj.style.cssText="background:url('2.gif') no-repeat 2 3"; } 以上就是【JS backgroundImage控制】的全部内容了,欢迎留言评论进行交流!