定位< div>停留在底部 [英] Position a <div> that stays at the bottom

查看:130
本文介绍了定位< div>停留在底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在页面底部放置< div> ,即使滚动页面也会保留在页面底部?可以使用CSS完成,还是我需要使用jQuery?

How do I position a <div> at the bottom of the page that will stay there even if I scroll a page? Can it be done with just CSS or do I need to use jQuery too?

DEMO

推荐答案

只需放置 position:fixed;

http://jsfiddle.net/niklasvh / gyExR / 17 /

这篇关于定位&lt; div&gt;停留在底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆