【发布时间】:2011-05-18 11:25:40
【问题描述】:
美好的一天,我有这样的元数据
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalabale=no, width=device-width, height=device-height" />
现在我可以用 js 获取高度视口了 我想用它来修改我的页脚,使其始终使用固定定位保持在屏幕底部。这是页脚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;*/
}
如何使用 JS 修改此页脚以获得正确的内容。谢谢你。 @cyberomin。
【问题讨论】:
标签: javascript css footer