Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $('.full-page').each(function() {
- var imgurl = $(this).find('img').attr('src');
- $(this).html('').css({
- 'width' : '100%',
- 'heihgt' : '600px',
- 'background-image' : 'url(' + imgurl + ')';
- 'background-position' : 50% 50%;
- 'background-size' : cover;
- 'background-repeat' : no-repeat;
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement