将元素(div)锁定到浏览器窗口的顶部或底部。 [英] Locking an element (div) to the top or bottom of the browser window.

查看:62
本文介绍了将元素(div)锁定到浏览器窗口的顶部或底部。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gmail会在发送...时执行此操作。或工作......即使当你向下滚动页面时,小盒子也会保持顶部和中心位置。

完美顺畅。


www。 comodo。 com这样做,他们的标志位于右下方。


这是怎么做的?

解决方案

position:fixed;


或一些Javascript如果IE


position:fixed现在在IE 7和8中工作:)


啊,他们终于做到了吗? ;)

Gmail does this when it says "Sending.." or "working.." even when
you scroll down the page the little box stays top and center.
Perfectly smooth.

www . comodo . com does this, their logo in the bottom right.

How is this done?

解决方案

position: fixed;

or some Javascript if IE


position:fixed works in IE 7 and 8 now :)


ah, so they finally did it? ;)


这篇关于将元素(div)锁定到浏览器窗口的顶部或底部。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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