Colorbox在滚动时使灯箱固定 [英] Colorbox make the light box fixed when scrolling

查看:99
本文介绍了Colorbox在滚动时使灯箱固定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jquery colorbox。当页面内容很大并且打开colorbox时。然后颜色框与页面内容一起滚动。我希望即使背景内容滚动也需要修复颜色框。

I working with jquery colorbox. When the page content is big and colorbox is opened. Then the color box scrolled along with the page content. I want the colorbox need to be fixed even the background content scrolls.

请帮我解决这个问题。

推荐答案

Puaka我正在改变一件小事,这让它很棒。它完美地对齐中心。

Puaka i am changing a little thing, which make it works awesome. It aligns center perfectly.

b $ b

#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}

#colorbox, #cboxOverlay{position:fixed; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxWrapper{}

colorbox完全对齐。

colorbox is perfectly aligned.

这篇关于Colorbox在滚动时使灯箱固定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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