Monday 15 September 2014

javascript - Backstretch.js not applying to body -



javascript - Backstretch.js not applying to body -

i wish had more show, problem simple. next github instructions, place:

$.backstretch("path/to/image.jpg");

in js. apply bg, not in body itself. @ end of inner body pastes:

<div class="backstretch" style="left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; z-index: -999999; position: fixed; width: 1920px; height: 717px;"></div>

i tried next well:

$('body').backstretch("path/to/image.jpg");

it not want apply body. need magic on body because believe there's chrome bug resolved doing such.

it seems have bug in help. this:

$('body').backstretch("path/to/image.jpg", {});

javascript jquery-plugins jquery-backstretch

No comments:

Post a Comment