Fórumok

Liferay applying "ie7" CSS class to body tag in IE8 browser.

Edgar G., módosítva 12 év-val korábban

Liferay applying "ie7" CSS class to body tag in IE8 browser.

New Member Bejegyzések: 23 Csatlakozás dátuma: 2011.10.24. Legújabb bejegyzések
Hey guys,

I'm working on a theme and I'm applying very specific styles to IE8. It works great on my local machine but when I upload it to a remote server and take a look in IE8 (on my local machine), I notice that the body tag now has the class style "ie7" instead of "ie8."

Anybody have an idea of what may be happening here?

Thanks!
Edgar G., módosítva 12 év-val korábban

RE: Liferay applying "ie7" CSS class to html tag in IE8 browser.

New Member Bejegyzések: 23 Csatlakozás dátuma: 2011.10.24. Legújabb bejegyzések
So it turns out the browser was being forced into compatibility mode because the Liferay site I was accessing is on an intranet and I'm using IE8. Since the browser was in compatibility mode, it acted as if it was IE7 and thus would have the ie7 css class instead of the ie8 css class applied to the HTML (I incorrectly typed "body" in the title of this thread) tag.

This is what I did to fix this issue:

Go to Tools > Internet Options > Security and make sure "Local intranet" zone is selected then click on Sites and uncheck "Automatically detect intranet network" and everything underneath that too.