从IIS看到我的网站时出现问题 [英] problem when I see my site from IIS

查看:75
本文介绍了从IIS看到我的网站时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好:
我的网站(ASP.NET)在Visual Studio上的localhost中运行,并且与IE,Chrome和Mozilla看起来都非常相似.

然后,当将站点部署到使用IIS的服务器上时,然后当我使用IE查看站点时,一团糟,一些控件变形了.而且Chrome和Mozilla的实验进行了一些更改,但没有IE大.

我在电脑上看到的东西应该如何显示在服务器上?

需要帮助,谢谢.

Hi:
I have my site (ASP.NET) running in localhost on Visual Studio and with IE, Chrome and Mozilla looks pretty similar on all.

Then when deploy the site on a server wich use IIS, then when I view the site with IE its a mess, some controls are distorted. And with Chrome and Mozilla experiments a little changes, but no as big as IE.

What should I make it look on the server as I see it in my pc?

Needs help, thanks.

推荐答案

在截图之前和之后都看不到,我只能猜测,但对我来说,这似乎是由绝对路径引用的图像或样式表对您的开发环境有效,但对您的部署环境无效.力争使用相对路径.
Without seeing before and after screenshots I can only guess but to me it sounds like there are images or stylesheets being referenced by absolute paths that are valid for your development environment but not valid for your deployment environment. Strive to use relative paths.


这篇关于从IIS看到我的网站时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆