简体   繁体   English

WordPress 2.8+和IE8显示问题?

[英]Wordpress 2.8+ and IE8 display problems?

EDIT: Corrected the site header IE7 code in my original post. 编辑:更正了我的原始帖子中的网站标题IE7代码。 Have tried that and inserting X-UA-Compatible: IE=EmulateIE7 into the header without any success. 尝试过并将X-UA-Compatible:IE = EmulateIE7插入标头中没有成功。 Both of these steps are suggested by Microsoft here: Microsoft在这里建议这两个步骤:

http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx

I'm working on a Wordpress blog (URL: www.nxtbot.com) and have encountered some problems with how the blog renders in IE8. 我正在一个Wordpress博客(URL:www.nxtbot.com)上工作,但该博客在IE8中的呈现方式遇到了一些问题。 The site uses Wordpress 2.8+ and the Mandigo Wordpress theme. 该网站使用Wordpress 2.8+和Mandigo Wordpress主题。

The primary design of the page has one central content window, with two sidebars on the right side of the page that use and display widget elements. 页面的主要设计具有一个中央内容窗口,在页面的右侧具有两个使用和显示小部件元素的侧边栏。

The site loads and displays perfectly when viewed with Chrome, Firefox, and Safari, but breaks when viewed with IE8: Both sidebars disappear, and only the main content window is visible. 在使用Chrome,Firefox和Safari进行浏览时,该网站可以很好地加载和显示,但是在使用IE8进行浏览时,该站点会中断:两个侧边栏都消失了,只有主内容窗口可见。

I've tried inserting this into the site header... 我尝试将其插入网站标题中...

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

...to force IE7 compatibility, but that didn't seem to help. ...强制IE7兼容,但这似乎无济于事。

Anyone else encountered this problem, or have a fix/workaround? 其他人是否遇到此问题,或者有解决方法?

如果没有打错,则在内容属性之后会丢失“”。

Your use of to position the content and the sidebar is a really bad idea, but that is not the problem with IE8. 您使用来定位内容和侧边栏确实不是一个好主意,但这不是IE8的问题。

the real problem is that you have an unclosed object tag in post 228 and that eats the rest of the page. 真正的问题是,您在228号帖子中有一个未关闭的对象标签,并且占用了页面的其余部分。 As your sidebars are after the content then they disappear. 由于侧边栏位于内容之后,因此它们消失了。

What you should do (except fixing the broken markup, of course) is to stop using tables and instead draw the sidebars in divs that are right floated, and put them before the content in the HTML. 您应该做的(当然,除了修复损坏的标记外)是停止使用表,而是在正确浮动的div中绘制侧边栏,并将其放在HTML内容之前。 The result would be properly positioned sidebars that are rendered before the content and will not disappear if your content breaks the markup. 结果将是正确放置在内容之前呈现的侧边栏,并且如果您的内容破坏了标记,则不会消失。

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

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