Fancy Box Overlay not working in IE8

给你一囗甜甜゛ 提交于 2019-12-12 02:23:03

问题


I am having an issue with FancyBox and IE8. For some reason IE8 does not recognize the background transparency on fancybox's overlay. It works in IE7 and older and Chrome, Safari, and Firefox.

You can see the problem at: http://seabagsc.nexcess.net/tote-bags/kevlar-tote.html

Any help would be much appreciated.

Thanks!

Chuck


回答1:


Old question, but in case anyone runs across this, I ended up fixing my IE8 problems with FancyBox by setting

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

at the top of the page. After that the overlay worked just fine.




回答2:


I've had some issues in the past with FancyBox and IEx. Normally it's got something to do with freezing the browser tab when you have images on your page that are still loading. Since then, I've been using ColorBox, which is, IMO, a better alternative with fewer problems:

http://colorpowered.com/colorbox/



来源:https://stackoverflow.com/questions/3875770/fancy-box-overlay-not-working-in-ie8

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