问题
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