jquery image-background chrome problem
This doesn't seem to work in chrome:
$(function(){
$('body').css('background-image','url(/static/img/b1_left.png');
}
when I apply it in css it works fine:
background-image: url('/static/img/b1_left.png');
in firefox both work fine.
I need it to work in jquery, to process hover events (when something is hovered, it and another element has to chang开发者_如何学JAVAe background)Missing a parentheses:
$(function(){
$('body').css('background-image','url("/static/img/b1_left.png")');
}
精彩评论