Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
position:absolute; bottom:0; top:0;
如果您的元素不是身体,请使用
position:relative
在父级上,以及特定的宽度和高度。
试试这个:http: //jsfiddle.net/bBhUX/
添加
position: fixed; overflow: hidden;
进入父容器
利用
position:absolute; //or fixed if you want it to remain at constant position even when scrolled bottom: 0;