开发者

how do I 'fix' jquery lightbox so that it doesn't scroll?

开发者 https://www.devze.com 2023-04-13 02:08 出处:网络
I added a lightbox to my blogger blog: BibleProphecyBlog.com, using code from here: http://www.spiceupyourblog.com/2011/09/add-one-time-email-subscription-pop-up.html

I added a lightbox to my blogger blog: BibleProphecyBlog.com, using code from here:

http://www.spiceupyourblog.com/2011/09/add-one-time-email-subscription-pop-up.html

How do I prevent the lightbox from scrolling. I want it t开发者_C百科o stay in place when scrolling.

Thanks.


You need to change the #popupContact rule on your page (line 451) to have a position:fixed !important value. See below.

#popupContact
{
    display: none;
    position: fixed !important; /* changed this part */
    _position: absolute;
    height: 384px;
    width: 408px;
    background: white;
    border: 2px solid #CECECE;
    z-index: 2;
    padding: 12px;
    font-size: 13px;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号