为什么我的网站只能在我的机器上运行?

时间:2021-08-08 08:44:03

I have uploaded a website to the internet.

我已将网站上传到互联网。

Firebug claims that no file is missing and yet on both IE and FF it doesn't look good as expected and also the script doesn't work (no errors).

Firebug声称没有文件丢失,但在IE和FF上它看起来并不像预期的那样好,并且脚本也不起作用(没有错误)。

However, on my own computer (or any offline machine), it works perfectly fine.

但是,在我自己的计算机(或任何离线机器)上,它的工作完全正常。

Here are the files.

这是文件。

And here is a screenshot:

这是一个截图:

为什么我的网站只能在我的机器上运行?

Any thoughts on why this happens? What's missing?

有关为什么会这样的想法吗?少了什么东西?

4 个解决方案

#1


Check for any differences in cases in files' names. If your developing on Windows (case-insensitive), and uploading files to a *nix server (case-sensitive), this would easily lead to file-not-found errors.

检查文件名称中的案例有何不同。如果您在Windows上进行开发(不区分大小写)并将文件上载到* nix服务器(区分大小写),则很容易导致文件未找到错误。

#2


This usually happens to me when I leave console.log statements in, by mistake. It works on my machine because I've got firebug -- my clients' machines don't, so the scripts break.

当我错误地离开console.log语句时,这通常会发生在我身上。它可以在我的机器上工作,因为我有萤火虫 - 我的客户机器没有,所以脚本坏了。

Your files link requires a login, so I couldn't see them.

你的文件链接需要登录,所以我看不到它们。

#3


How did you upload the files? We had similar issue when copying between virtual servers. Everything seemed perfect but they dont work properly as you said. Then we used xcopy to move the files.

你是怎么上传文件的?在虚拟服务器之间复制时我们遇到了类似的问一切看起来都很完美,但正如你所说,它们不能正常工作。然后我们使用xcopy来移动文件。

Try uploading them using a good FTP client. Also please post a screenshot of how it should look.

尝试使用一个好的FTP客户端上传它们。另外,请发布它应该看起来的截图。

#4


Well the problem was this:

那问题是这样的:

The site currently on line and the files you sent aren't identical. the images in the sent file are correct. if you compare the two you'll see that the images on line are LARGER then they should be and that is why the site looks off. It is NOT a CSS issue - the images just need to be replaced with the images in the correct size. I'm mailing you the full site you sent me again with the correct images only. Please scrub the server from ALL IMAGES on it and then re-install the site with the correct images.

当前在线的站点和您发送的文件不完全相同。发送文件中的图像是正确的。如果你比较两者,你会发现在线图像比较大,那么它们应该是,这就是网站看起来的原因。它不是CSS问题 - 图像只需要用正确大小的图像替换。我正在向您发送您再次发送给我的完整网站,仅提供正确的图片。请从服务器上的所有图像中擦除服务器,然后使用正确的图像重新安装该站点。

This is from my designer.
Strange that the subversion wasn't updated.

这是我的设计师。奇怪的是颠覆没有更新。

#1


Check for any differences in cases in files' names. If your developing on Windows (case-insensitive), and uploading files to a *nix server (case-sensitive), this would easily lead to file-not-found errors.

检查文件名称中的案例有何不同。如果您在Windows上进行开发(不区分大小写)并将文件上载到* nix服务器(区分大小写),则很容易导致文件未找到错误。

#2


This usually happens to me when I leave console.log statements in, by mistake. It works on my machine because I've got firebug -- my clients' machines don't, so the scripts break.

当我错误地离开console.log语句时,这通常会发生在我身上。它可以在我的机器上工作,因为我有萤火虫 - 我的客户机器没有,所以脚本坏了。

Your files link requires a login, so I couldn't see them.

你的文件链接需要登录,所以我看不到它们。

#3


How did you upload the files? We had similar issue when copying between virtual servers. Everything seemed perfect but they dont work properly as you said. Then we used xcopy to move the files.

你是怎么上传文件的?在虚拟服务器之间复制时我们遇到了类似的问一切看起来都很完美,但正如你所说,它们不能正常工作。然后我们使用xcopy来移动文件。

Try uploading them using a good FTP client. Also please post a screenshot of how it should look.

尝试使用一个好的FTP客户端上传它们。另外,请发布它应该看起来的截图。

#4


Well the problem was this:

那问题是这样的:

The site currently on line and the files you sent aren't identical. the images in the sent file are correct. if you compare the two you'll see that the images on line are LARGER then they should be and that is why the site looks off. It is NOT a CSS issue - the images just need to be replaced with the images in the correct size. I'm mailing you the full site you sent me again with the correct images only. Please scrub the server from ALL IMAGES on it and then re-install the site with the correct images.

当前在线的站点和您发送的文件不完全相同。发送文件中的图像是正确的。如果你比较两者,你会发现在线图像比较大,那么它们应该是,这就是网站看起来的原因。它不是CSS问题 - 图像只需要用正确大小的图像替换。我正在向您发送您再次发送给我的完整网站,仅提供正确的图片。请从服务器上的所有图像中擦除服务器,然后使用正确的图像重新安装该站点。

This is from my designer.
Strange that the subversion wasn't updated.

这是我的设计师。奇怪的是颠覆没有更新。