internet explorer not working properly with fancy box

三世轮回 提交于 2020-01-05 08:50:29

问题


I'm not a programmer, but I've put together a site that uses fancy box and all is good in chrome and firefox, but ie8 & ie9 are a disaster. the site is http://www.pinnaclebillboards.com.

I've searched to correct the problem but i'm not even sure how to describe it. Can anyone point me in the right direction please?


回答1:


You are missing the DOCTYPE so IE is working in quirks mode. You need to set the proper DOCTYPE to make fancybox to work in IE. Check this link or this other for more on this topic.

Also be sure that you close your tags properly to avoid further issues.




回答2:


I'm going to take a stab in the dark here and suggest it has something to do with loading a flash object into the fancybox. Shouldn't be a problem, but ya never know with IE.




回答3:


From looking at the source I have a few recommendations:

  • Add a doctype, e.g.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  • Change encoding to UTF-8



来源:https://stackoverflow.com/questions/9011549/internet-explorer-not-working-properly-with-fancy-box

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