不同浏览器和相同版本的差异显示网站 [英] difference display website in same browser and same version

查看:73
本文介绍了不同浏览器和相同版本的差异显示网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iis中添加一个网站
之后,当我浏览该地址(例如(http://localhost:8080))时,我的所有布局都可以,但是当与计算机的ip(192.168.1.30)交换"localhost"时:例如(http://192.168 .1.30:8080)我的布局不正确.为什么?
此问题从我在服务器中发布网站开始,在服务器中是错误的,但是在调试模式下的本地布局是正确的.
IE 8中的所有状态检查
甚至我删除了我所有的css文件,但是这个问题仍然存在

i add a website in my iis
after that when i browse this address e.g (http://localhost:8080) everything of my layout is ok,but when exchange "localhost" with my computer''s ip (192.168.1.30) : e.g (http://192.168.1.30:8080) my layout is not correct. why?
this problem started from when i published my website in server , in the server is wrong but in local in the debug mode my layout is true.
all status check in IE 8
even i delete all of the my css file but this problem is exist

推荐答案

这可能有很多原因,但是就我而言(几周前)发生这种情况的原因是两台计算机上文件系统的处理方式不同,我的服务器是Linux,装有EasyPHP的本地主机(要测试)是Windows.Linux对文件名区分大小写,并且使某些文件停止工作. br/>
就您而言,如果不涉及linux,因此不会发生区分大小写的问题,请查看本地环境中的配置文件,并尝试查看它们与服务器上的设置之间的区别.

尽量不要使用完整路径,而只使用相对路径...

PS:为了获得更多信息,我发现在firefox中使用FireBug确实很有用(我使用虚拟机安装其他浏览器,以便能够使用这些工具并检查网站是否正确已在所有主要浏览器下查看).

祝你好运! :thumbsup:
This can happen for a lot of reasons, but in my case (a few weeks ago) it happened due to different handling of the file systems in both computers, my server was linux and my localhost with EasyPHP (to test) was windows... Linux was case sensitive with the file names and it made some files to stop working.

In your case, if no linux is involved and therefore no case sensitive problems can happen, look at the configuration files on your local environment and try to see differences between them and the settings on your server.

Try not to use full paths and use only relative ones...

PS: in order to get extra information, I''ve found it really useful to use FireBug in firefox (I used a virtual machine to install other browsers in order to be able to use those tools and to check that the web site was correctly viewed under all the major browsers out there).

Good luck! :thumbsup:


这篇关于不同浏览器和相同版本的差异显示网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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