阅读背景:

使用jquery在页面中心放置一个叠加层

来源:互联网 

This should be a simple question, but I can't seem to figure it out. I made a popup using jquery, and I want it positioned in the center of the page. No matter how the site is adjusted and the resolution. Right now I'm just positioning it absolutely with CSS but the problem with that is that if you move the page around it doesn't move the overlay and it depends on how much content is on the page. Is there a way to position it with jquery so it will also be in the center of the window?This should be a simple question, but I can't s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: