How can I set a CSS property on the html element with jQuery?
I’m trying to do something like…
$('html').css({'background': 'url(/images/bg.png) top center'})
EDIT: For those that will ask why not just set it on the body or some other work around, this needs to be set like this as it fixes a webkit bug in iOS 4
EDIT 2: I guess this is doing what it should already. It must be something with the finicky bug that is causing this to act differently then when I set it via external CSS, strange
Simply like that:
$('html').css('background', 'url(/images/bg.png) top center')