jQuery fancyBox Closing icon

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 09:08:17

问题


I've installed Lightbox gallery on my html site. Photo's are opening perfect but, the closing icon isn't displaying correcly. What "falls off" the image isn't displayed. Did not change the code or lightbox css. The z-index is fine. Really don't know what te problem could be.

http://i39.tinypic.com/23jmo86.jpg


回答1:


It has to do with the use of overflow:hidden somewhere in your css. There's a simple solution for this. Add this to your css:

.fancybox-opened {overflow:visible !important;}

And it's fixed.




回答2:


Is there any chance you have:

div {
    overflow: hidden;
}

Somewhere in your page CSS? If so, you need to make the CSS selector more specific.

Setting the overflow to hidden on an example fancybox results in a div that looks exactly like that. Not only is the close button cropped, but the drop shadow is cropped off too.

Demo: http://jsfiddle.net/jtbowden/QuGme/

Fixed: http://jsfiddle.net/jtbowden/QuGme/1/

Other than that, it is difficult to say without seeing your HTML and CSS.




回答3:


Hmm ive just noticed that theres an inline style of filter alpha(opacity=100); WIDTH: 720px

Which if i disable seems to show the close button correctly.



来源:https://stackoverflow.com/questions/10217408/jquery-fancybox-closing-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!