为什么我的网页不能应用其CSS? [英] Why can't my web page apply its CSS?

查看:162
本文介绍了为什么我的网页不能应用其CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的网站(主要是静态html / css),但由于某些原因,一些网页不会应用外部css在Firefox(工作在IE)。

I have a simple website(primarily static html/css) but for some reason some of the pages won't apply the external css in Firefox (works in IE).

http://bjmarine.net/services.html - 已损坏

http://bjmarine.net/index.html - 工作正常

我比较了这两个文件,看不到任何差异。我已经试过他们在editplus和记事本。当我看到破碎的页面与firebug和新鲜我开始看到一些中文字符的地方。不知道如何解决这个问题,或如何发展。我担心网站被其他人改变了,或者编辑器添加了这些隐藏的字符一些如何(我只使用VS2008和editplus)。

I have compared both files and can't see any difference. I have tried them in editplus and notepad. When I view the broken page with firebug and fresh I start to see some chinese characters all over the place. Not sure how to fix this, or how it happended. I'm worried the site has been altered by someone else or perhaps an editor added these hidden characters some how (I only use VS2008 and editplus).

我可以看到

任何人都可以提供解决方案和发生的原因吗?

Can anyone provide a solution and a reason for whats happened?

感谢
Denis

Thanks Denis

推荐答案

的html文件

索引是ISO-8859-1和service utf-16(这就是为什么你看到奇怪的字符)。

index is ISO-8859-1 and service utf-16 (thats why you see weird characters).

在编辑器中打开文件,保存为,并将service.html的编码更改为iso。

Open the file in an editor, the clic in save as and change the encoding of service.html back to iso.

这篇关于为什么我的网页不能应用其CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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