internet explorer not working properly with fancy

2019-07-23 19:56发布

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?

3条回答
Anthone
2楼-- · 2019-07-23 20:35

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

查看更多
爷、活的狠高调
3楼-- · 2019-07-23 20:44

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.

查看更多
我想做一个坏孩纸
4楼-- · 2019-07-23 20:47

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.

查看更多
登录 后发表回答