javascript - Background image doesn't cover the whole height on mobile phones -
here deal. want set gif image background image whole screen before link opens. here how works. user clicks on link. jquery set delay opening of link. remove elements page. , assign gif image background. after new page loaded. works fine on pcs. strange reason doesn’t cover whole height on mobile screens. width. here html
<html lang="ru" class="back_image">
here css
html.back_image{ background: url("images/kingdom1.jpg") no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
here jquery code use:
<!-- delay registration link --> <script> function delay (url) { settimeout( function() { window.location = url }, 4500 ); } </script> <!-- remove elemnts on clicking registration from--> <script> $(document).ready(function(){ $('#registration').click(function(){ $( '#remove_all' ).remove(); }); }); </script> <!-- animation web page after removing elements --> <script> $(document).ready(function(){ $('#registration').click(function(){ $('.back_image').css("background-image", "url(images/dragonfire2.gif)", ); }); }); </script>
.back_image class assigned html tag.
any help?
Comments
Post a Comment