Javascript examples for jQuery Method and Property:css
`-ms-touch-action` style with $.css()
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function(){// w ww . j a va 2s.c om var elem = document.getElementById("demo"); elem.setAttribute("style","position:relative;-ms-touch-action:none;height: 100%,"); $('body').append($('#demo').attr('style')); }); </script> </head> <body> <div id="demo"> Demo </div> </body> </html>