是可能IE8将渲染CSS不同的Windows 7与Windows XP [英] Is it possible IE8 will render CSS differently in Windows 7 vs Windows XP

查看:202
本文介绍了是可能IE8将渲染CSS不同的Windows 7与Windows XP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完全困惑。
在工作,我有一个较旧的Windows XP机器(我没有选择),它上有IE8。
我的老板有一台笔记本电脑与Windows 7和IE8。



我有一个工作原型网站与IELegacy CSS,做一些技巧CSS,使一些事情在我的Windows XP IE8中工作。这些技巧很小,主要是间隔问题。 (是的,我知道,我不喜欢仍然这样做,但有时你没有选择。)



但是,ielegacy.css中的所有东西加上一些其他的间距问题,所有的错误,完全totally了我的老板的Windows 7 IE8机器。 (例如数据从一个表中包含的单元格中冒出来!这是怎么可能的 - 它的表)。



我不知道如何解决这个问题。 p>

所以我问集体... IE8可能在不同版本的Windows上做不同的事情吗?或者是别的东西在这里?



如果是,有关如何调整的任何想法?



现在:)



感谢
JD



PS - 我没有比较屏幕抓取..会试着得到一些。



更新 - 感谢所有 - 兼容性视图是罪魁祸首。我完全忘了它。 (我只使用IE进行测试)。每个人都有优秀的疑难解答的想法,我同意,我没有提供足够的信息。 (FYI字体是标准的MS Arial,因为我需要完整的UTF-8,我不需要像素完美...)。我很感激!
现在我只需要获得兼容性视图和非兼容性视图来匹配 - 这不应该太难。我只需要了解发生了什么。

解决方案

阅读剩余的评论/答案后:



您修复它:




  • 使您的网站在IE7中工作,因为这是兼容模式是模拟。您的网站最好能在Internet Explorer 7中使用,因为它仍然被少量的用户使用。

  • 了解为什么您的网站有时是IE7模式。您的网站应该始终处于IE8模式

  • 这很复杂,请参阅: http://hsivonen.iki.fi/doctype/#ie8modes

  • 修复将添加此元标记:

     < meta http-equiv =X-UA- Compatible content =IE = edge,chrome = 1/> 

    这应该(几乎)总是强制使用最新的IE浏览器模式, href =http://code.google.com/chrome/chromeframe/ =nofollow> Chrome Frame (如果可用)。



Totally confused. At work, I have an older Windows XP machine (I have no choice) and on it I have IE8. My boss has a laptop with Windows 7 and IE8.

I have a working prototype website with an IELegacy CSS that does some tricks to the CSS to make some things work in my Windows XP IE8. These tricks are small, mostly spacing issues. (Yes, I know, I don't like still resorting to doing this, but sometimes you have no choice.)

However, all the things in the ielegacy.css plus some other spacing issues go all wrong and totally wonky on my boss' Windows 7 IE8 machine. (like data blowing out of its containing cell in a table! how is that even possible - its a table).

I have no idea how to fix this.

So I ask the collective... is it even possible that IE8 can be doing different things on different versions of Windows? or is something else going on here?

If so, any ideas on how to adjust for that?

Also, if so, just kill me now :)

Thanks JD

PS - I have no comparison screen grabs.. I will try to get some.

Update - thanks all - Compatibility View was the culprit. I totally forgot about it. (I only use IE for testing). Everybody had excellent troubleshooting ideas, and I agree, I did not provide enough info. (FYI fonts are standard MS Arial because I need full UTF-8 and I don't need pixel perfect...). I appreciate it! Now I just need to get Compatibility View and non-Compatibility View to match up - which shouldn't be too hard. I just needed to understand what was going on. Cheers!

解决方案

After reading the rest of the comments/answers:

You fix it by:

  • Making your site work in IE7, because that's what Compatibility Mode is "simulating". Your site should ideally work in Internet Explorer 7, as it's still used by a smallish percentage of users.
  • Figuring out why your site is arbitrarily sometimes in IE7 mode. Your site should be in IE8 mode all the time in IE8.
  • It's rather complicated, see: http://hsivonen.iki.fi/doctype/#ie8modes
  • A simple fix would be to add this meta tag:

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    

    This should (almost) always force the most up-to-date IE browser mode, and Chrome Frame if it's available.

这篇关于是可能IE8将渲染CSS不同的Windows 7与Windows XP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆