javascript - Fixed position on a mobile browser for footer -
good day, have meta this
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalabale=no, width=device-width, height=device-height" />
now can height view port js want use modify footer stays @ bottom of screen using either fixed positioning. here footer css
#footer { height:30px; background-color:#d9d9d9; background-image:url(../images/footer.png); background-repeat:repeat-x; margin-top:20px; width:100%; /*bottom:0; position:fixed;*/ }
how modify footer using js right thing. thank you. @cyberomin.
document.getelementbyid("footer").style.position = "fixed";
Comments
Post a Comment