简体   繁体   English

Internet Explorer无法与精美的盒子一起使用

[英]internet explorer not working properly with fancy box

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. 我不是程序员,但是我已经建立了一个使用花哨的盒子的站点,并且在chrome和firefox方面都很好,但是ie8&ie9简直是一场灾难。 the site is http://www.pinnaclebillboards.com . 该网站为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? 谁能指出我正确的方向?

You are missing the DOCTYPE so IE is working in quirks mode. 您缺少DOCTYPE所以IE在怪癖模式下工作。 You need to set the proper DOCTYPE to make fancybox to work in IE. 您需要设置适当的DOCTYPE才能使fancybox在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. 另外,请确保正确关闭标签,以免发生其他问题。

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. 我将在这里进行暗中刺探,建议它与将Flash对象加载到fancybox中有关。 Shouldn't be a problem, but ya never know with IE. 应该不成问题,但是您从不了解IE。

From looking at the source I have a few recommendations: 通过查看源代码,我有一些建议:

  • Add a doctype, eg 添加一个文档类型,例如

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!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 将编码更改为UTF-8

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM