简体   繁体   English

网站在一个域上的IE9上的行为不同,但在不同域上的完全相同的站点表现良好

[英]Website behaving differently on IE9 on one domain, but exact same site on different domain behaves fine

I'm majorly struggling to find out the cause behind this. 我正在竭力寻找造成这种情况的原因。 The website functions completely fine on firefox, IE10 (and above), safari, etc. but on IE9 (and possibly lower versions), the website style doesn't function properly. 该网站在Firefox,IE10(及更高版本),safari等上的功能完全正常,但在IE9(及更低版本)上,该网站样式无法正常运行。

i used two domains, on one the website functions fine, while on the other domain, i have uploaded the exact same files and it doesn't function properly. 我使用了两个域,一个在网站上可以正常运行,而在另一个域上,我已经上传了完全相同的文件,但运行不正常。

ill provide you with both URL's http://www.cilnet.com - not behaving properly on IE9 http://www.microlinkcilnet.com/cilnet - EXACTLY the same website - behaves properly on IE9 不能为您提供两个URL的http://www.cilnet.com-在IE9上无法正常运行http://www.microlinkcilnet.com/cilnet-完全相同的网站-在IE9上可以正常运行

here is an image that differences both the sites http://i.stack.imgur.com/ehqnI.jpg 这是一张图片,它在两个站点上都有差异: http://i.stack.imgur.com/ehqnI.jpg

your help would be greatly appreciated. 您的帮助将不胜感激。

Its caching issure as WindsorAndy wrote. 温莎·安迪(WindsorAndy)写道,它的缓存是确定的。

press crtl+F5 once or twice to see the updated background colors that you added to the css. 按crtl + F5一次或两次,以查看添加到CSS的更新的背景颜色。

refer to How to prevent css caching 请参阅如何防止CSS缓存

Also prevent all cache with random number would mean you gain no benefit at all from browser caching which would be horrendous for performance . 同时防止所有具有随机数的缓存都意味着you gain no benefit at all from browser caching which would be horrendous for performance

You'd be better off doing something like adding a version number to the end of the file name like <link rel="stylesheet" type="text/css" href="style.css?version=1.12 that you update version as needed. 您最好做一些类似的操作,例如在文件名的末尾添加版本号,例如<link rel="stylesheet" type="text/css" href="style.css?version=1.12 ,将版本更新为需要。

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

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