Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

web page different display with localhost and ip address

I am experiencing a strange problem with my website today. I have my local code in aspx , which i can browse perfectly in ie and firefox, I publish it in my computer and create a virtual web site and then browse it with both firefox and ie like http://localhost/testwebsite/default.aspx and it displays also perfectly but when switching from localhost to my local ip address the page displays strange in the element layout, they lay in strange order not like they should.

I am not being able to figure out this problem? Is it some new problem of ie. What is so different when browsing by localhost and ip for the same published code. The only one doubt would be about relative css and javascript paths but we checked them and they appear fine.

like image 367
Blerta Avatar asked Dec 03 '09 16:12

Blerta


1 Answers

Try adding the following meta tag to the head of your page:

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

I was having a similar problem with IE8 forcing an intranet site of mine to be viewed in IE7 compatibility mode.

like image 68
MarkAG Avatar answered Oct 27 '22 14:10

MarkAG