Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @media screen and (max-width: 600px) {
- #chto_ne_pozavivat {
- visibility: hidden;
- display: none;
- }
- }
- <script type="text/javascript">
- var mobile = (/iphone|ipod|android|blackberry|mini|windowssce|palm/i.test(navigator.userAgent.toLowerCase()));
- if (mobile) {
- alert("Мобильное устройство!!");
- $('.navWrap').css('display', 'none'); // или можно $('.navWrap').hide();
- }
- else
- {
- alert("НЕ мобильное устройство!");
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement