CSS& Firefox问题 [英] CSS & Firefox problem

查看:57
本文介绍了CSS& Firefox问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在做CSS的噩梦。任何人都可以帮帮我吗?


我使用以下代码包括我的样式表


< head>

< title>我的标题。< / title>

< link rel =" stylesheet" HREF =" stylesheet.css中" type =" text / css">< / link>

< / head>


在IE浏览器中此功能正常


然而,在FireFox中,就好像样式表从未加载过

(虽然检查服务器日志显示firefox成功了

retreived页面)


我正在运行IIS6,我已关闭HTTP压缩并确保它已经发送了正确的MIME类型(文本/ css)


如果我复制stylesheet.css的内容并将其粘贴在

< style>< / style>之间标签,然后它工作正常,如果我将.html和.css文件保存到磁盘并在FireFox中本地查看它也可以工作


我没有想法。我可以把整个样式表放在

< style>< / style>标签,但这会浪费带宽。


有人可以帮忙吗?

I''m having nightmares with CSS at the moment. Can anyone help me out?

I''m including my stylesheet using the following code

<head>
<title>My Title.</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css"></link>
</head>

In IE this works fine

However, in FireFox it is as if the stylesheet was never loaded at all
(Although checking the server logs shows that firefox successfully
retreived the page)

I''m running IIS6, I''ve turned off HTTP compression and Ensured that it
is sending the correct MIME type (text/css)

If I copy the contents of stylesheet.css and paste it between
<style></style> tags, then it works fine, and it also works if I save
the .html and .css files to disk and view it locally in FireFox

I''m out of ideas. I could just put the whole stylesheet in
<style></style> tags, but it would be a horrible waste of bandwidth.

Can anyone help?

推荐答案

an*********@yahoo.co.uk 写道:
我在做噩梦


你的工作太认真了。 < g>

目前还有CSS。任何人都可以帮助我吗?

我使用以下代码包含我的样式表

< head>
< title> My Title。< / title>
< link rel =" stylesheet" HREF =" stylesheet.css中" type =" text / css">< / link>
< / head>
I''m having nightmares
You''re taking your job too seriously. <g>
with CSS at the moment. Can anyone help me out?

I''m including my stylesheet using the following code

<head>
<title>My Title.</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css"></link>
</head>




尝试删除多余的< / link>最后。

http://validator.w3.org/


-

-bts

-这个空间故意留空。



Try removing that redundant </link> at the end.

http://validator.w3.org/

--
-bts
-This space intentionally left blank.


我试过没有多余的< / link>但仍然有相同的

问题。

I''ve tried without the redundant </link> but still have the same
problems.


只是添加一些额外的细节


我在同一台服务器上的另一个站点上遇到此问题。我正倾向于使用服务器的问题来支付b $ b。有没有人对我在IIS6服务器上可以更改的内容有什么想法?

Just to add some extra details

I''ve had this problem on another site on the same server. I''m leaning
towards it being a problem with the server. Has anyone got any ideas on
what I can change on the IIS6 server?


这篇关于CSS&amp; Firefox问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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