开发者

Exactly the same Xhtml displays differently depeneding on hostname

开发者 https://www.devze.com 2022-12-14 16:10 出处:网络
I have a web page. When I view it under localhost it looks开发者_如何学Go ok e.g. http://localhost/MySite/ is fine

I have a web page.

When I view it under localhost it looks开发者_如何学Go ok e.g. http://localhost/MySite/ is fine

When I view it using the specific name of my machine one of the pages renders incorrectly e.g. http://MyMachineName/MySite/

However the Xhtml is identical. This makes no sense to me.

(IIS 5/ASP.NET 3.5/XHTML Transitional)


Based on the comments above.

Make sure compatibility mode is set for both localhost and the machine name.

(this answer is just for others who may come across this question. The OP solved this themselves)

0

精彩评论

暂无评论...
验证码 换一张
取 消