简体   繁体   中英

Problems loading some CSS styles with Internet Explorer accessing from computer name

I am having a very weird problem only with Internet Explorer (I'm using the version 9.0.8)

I have a web server installed on the computer (windows 7) running under IIS 7. I have used CakePHP framework for the site.

When i access it from my IP address everything works well but on the other hand, when I access it from the computer name, some CSS styles are not applied as well as some JS scripts.

The files are loading correctly because most of the CSS styles are applied and all of them load from one same file. But some of them, don't ask me why, are not applied.

Here you can take a look at the Internet Explorer inspector loading the site from both URLs: http://s9.postimage.org/vjhg6ytsd/problem.png在此处输入图片说明

With Javascript, what happends is that some functions seem to interrupt the flow of the rest. If I delete this "conflictive" functions then it works well. (but it always works well loading it from localhost or with the IP directly...)

See: IE not rendering CSS properly when the site is located at networkdrive

Add this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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