Div屏幕中心。 [英] Div center of screen.
本文介绍了Div屏幕中心。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我尝试过几种方法,但效果不是很好。我想知道保持屏幕中心(水平和垂直)的最佳和最简单的方法,即使在滚动页面时也是如此?
非常感谢。
Hello,
I have tried few ways, but it didn''t work out too well. I''d like to know the best and simple way to keep a div center of screen(both horizontal and vertical), even when scrolling the page?
Help greatly appreciated.
推荐答案
您好,
我尝试了几种方法,但它没有运作得太好了。我想知道保持屏幕中心(水平和垂直)的最佳和最简单的方法,即使在滚动页面时也是如此?
非常感谢。
Hello,
I have tried few ways, but it didn''t work out too well. I''d like to know the best and simple way to keep a div center of screen(both horizontal and vertical), even when scrolling the page?
Help greatly appreciated.
你可以设法捕获滚动事件????
Could u manage to trap the scrolling event????
你可以设法捕获滚动事件????
Could u manage to trap the scrolling event????
不,我希望我的访问者能够滚动页面。
no, i want my visitors to be able to scroll the page.
这是我想出的,如果你的时间允许,任何人都可以帮我妥善存档吗? :)
fav.css
here is what i have come up with, could anyone help me archive this properly, if your time permits it? :)
fav.css
展开 | 选择 | Wrap | 行号
这篇关于Div屏幕中心。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文