Last active
October 14, 2015 14:59
-
-
Save dipiash/3fbb408c882f9ccd457c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ресайз картинки на все окно: | |
| 1) http://masscode.ru/files/zip/liCover.zip | |
| 2) | |
| ``` | |
| <link rel="stylesheet" href="/css/liCover.css"> | |
| ``` | |
| 3) <img class="cover" src="/pic/image.jpg"> | |
| 4) | |
| ``` | |
| <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
| <script src="js/jquery.liCover.js"></script> | |
| <script> | |
| $(function() { | |
| $(window).load(function(){ | |
| $('.cover').liCover({ | |
| parent: $(window), | |
| position:'absolute', | |
| veticalAlign:'middle', | |
| align:'center' | |
| }) | |
| }) | |
| }); | |
| </script> | |
| ``` | |
Author
dipiash
commented
Oct 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment