纯css 实现footer 一直在页面底部,不随页面滚动

网页制作 发布日期:2024/9/22 浏览次数:1

正在浏览:纯css 实现footer 一直在页面底部,不随页面滚动

今天这个案例,我们希望footer一直在页面底部,来看看解决方案吧

css

复制代码代码如下:
html, body, #sticker {height: 100%;}
body > #sticker {height: auto; min-height: 100%;}
#stickerCon {padding-bottom: 40px;}
#footer {margin-top:-40px; height: 40px; width: 100%; text-align: center; line-height: 40px; color: #ABA498; font-size: 12px; background: #fafafa; border-top:1px solid #E7E7E7;}

html


复制代码代码如下:
<div id="sticker">
<div id="stickerCon"></div>
</div>
<div id="footer">footer</div>

Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。