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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -