开发者

$(body).css({'background-image':'url'}) not working

开发者 https://www.devze.com 2023-02-16 01:46 出处:网络
Shall I assume that I can\'t apply .css() to the body tag? Because if I do it on $(\"#div开发者_开发问答\")... it works?$(document.body).css(...)

Shall I assume that I can't apply .css() to the body tag?

Because if I do it on $("#div开发者_开发问答")... it works?


$(document.body).css(...)

or

$('body').css(...)


how about

$("body").css("background-image","url('/my/image.jpg')");
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号