样式表没有出现在FireFox和Camino中 [英] Stylesheet not appearing in FireFox and Camino

查看:69
本文介绍了样式表没有出现在FireFox和Camino中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




这是一个难题,我希望那里有人可以帮我解决。


我已创建一个页面到XHTML 1.0 Transitional / CSS标准使用

Macromedia Dreamweaver MX 2004(并且没有任何问题验证)。

创建页面时我已经预览了它IE 6,FireFox 0.8和Opera

7.21在我的电脑上,页面显示完美(好吧,就像IE的CSS实现的CSS一样完美!)


现在我将页面及其样式表等上传到服务器

并尝试通过WWW查看页面,IE 6和Opera视图没有

问题,但FireFox只显示未设置样式的页面。通常的太阳镜

图标出现在底部栏中,表示样式表附在

页面上,但由于某种原因我无法理解样式表

信息没有被显示。

我已经在朋友的Mac上试过了,同样的情况发生在他的FireFox上,还有一个b $ b $ Camino,暗示这只是Mozilla浏览器的问题。


有问题的页面可以在以下网址找到:
http://www.ammicro.co.uk/new_site/


任何人的想法?


提前致谢。

Tony。

Hi,

Here''s a conundrum that I hope someone out there can help me solve.

I''ve created a page to XHTML 1.0 Transitional / CSS standards using
Macromedia Dreamweaver MX 2004 (and validated both with no problems).
Whilst creating the page I''ve previewed it in IE 6, FireFox 0.8 and Opera
7.21 on my PC and the page displays perfectly (well, as perfectly as IE''s
implementation of CSS will allow!)

Now when I upload the page together with its stylesheet etc. to the server
and try to view the page over the WWW, both IE 6 and Opera view it with no
problems but FireFox only displays the unstyled page. The usual sunglasses
icon appears in the bottom bar indicating that a stylesheet is attached to
the page, but for some reason that I fail to understand that stylesheet
information isn''t being displayed.
I''ve tried it on a friends Mac and the same happens in his FireFox and also
Camino, which implies this is an issue with only Mozilla browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/

Any ideas anyone?

Thanks in advance.
Tony.

推荐答案

Tony Carnell写道:

[snip]
Tony Carnell wrote:
[snip]
现在当我将页面及其样式表等上传到
服务器并尝试通过WWW查看页面时IE 6和Opera
查看它没有任何问题,但只显示FireFox没有样式的页面。
通常的太阳镜图标出现在底部栏中,表示页面附有
样式表,但由于某种原因我无法理解样式表信息不是''没有显示。
我已经在朋友的Mac上尝试过了,他的FireFox和Camino也是如此,这意味着这只是Mozilla浏览器的问题。

有问题的页面可以在以下网址找到:
http://www.ammicro.co.uk/new_site/
Now when I upload the page together with its stylesheet etc. to the
server and try to view the page over the WWW, both IE 6 and Opera
view it with no problems but FireFox only displays the unstyled page.
The usual sunglasses icon appears in the bottom bar indicating that a
stylesheet is attached to the page, but for some reason that I fail
to understand that stylesheet information isn''t being displayed.
I''ve tried it on a friends Mac and the same happens in his FireFox
and also Camino, which implies this is an issue with only Mozilla
browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/




我怀疑它是因为您的服务器正在使用内容类型
" application / x-pointplus"而不是text / css。 Mozilla实际上正在做

正确的事情,虽然第一次点击它可能会令人不安。

(虽然通常错误是text / html而是! )当我遇到类似的问题时,我要求我的主机

服务更改。


-

Barry Pearson http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
< a rel =nofollowhref =http://www.ChildSupportAnalysis.co.uk/target =_ blank> http://www.ChildSupportAnalysis.co.uk/



I suspect it because your server is serving the CSS with Content Type
"application/x-pointplus" instead of "text/css". Mozilla is actually doing the
right thing, although it can be disconcerting the first time you hit it.
(Although normally the mistake is "text/html" instead!) I asked my hosting
service to change when I had a similar problem.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/


Tony Carnell写道:

[snip]
Tony Carnell wrote:
[snip]
现在我将页面及其样式表等上传到
服务器并尝试通过WWW查看页面,IE 6和Opera
查看它没有任何问题,但FireFox只显示没有样式的页面。
通常的太阳镜图标显示在底栏中,表示页面附有
样式表,但由于某种原因我无法理解样式表信息不是''正在显示。
我已经在朋友的Mac上尝试过了,他的FireFox和Camino也是如此,这意味着这只是Mozilla浏览器的问题。 />
有问题的页面可在以下网址找到:
http://www.ammicro.co.uk/new_site/
Now when I upload the page together with its stylesheet etc. to the
server and try to view the page over the WWW, both IE 6 and Opera
view it with no problems but FireFox only displays the unstyled page.
The usual sunglasses icon appears in the bottom bar indicating that a
stylesheet is attached to the page, but for some reason that I fail
to understand that stylesheet information isn''t being displayed.
I''ve tried it on a friends Mac and the same happens in his FireFox
and also Camino, which implies this is an issue with only Mozilla
browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/




我怀疑它是因为你的服务器正在为CSS提供内容类型

" application / x-pointplus"而不是text / css。 Mozilla实际上正在做

正确的事情,虽然第一次点击它可能会令人不安。

(虽然通常错误是text / html而是! )当我遇到类似的问题时,我要求我的主机

服务更改。


-

Barry Pearson http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
< a rel =nofollowhref =http://www.ChildSupportAnalysis.co.uk/target =_ blank> http://www.ChildSupportAnalysis.co.uk/



I suspect it because your server is serving the CSS with Content Type
"application/x-pointplus" instead of "text/css". Mozilla is actually doing the
right thing, although it can be disconcerting the first time you hit it.
(Although normally the mistake is "text/html" instead!) I asked my hosting
service to change when I had a similar problem.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/


Tony Carnell写道:
Tony Carnell wrote:
有问题的页面可以在以下网址找到:
http://www.ammicro.co.uk/new_site/

任何想法?
The page in question can be found at:
http://www.ammicro.co.uk/new_site/

Any ideas anyone?




内容类型:application / x-pointplus


这是与css文件相当常见的服务器配置冲突。

配置要发送的服务器带有mime-typetext / css的CSS文件。

-

Andrew Urquhart

- 联系人: www.andrewu.co.uk/contact/

- 雇用我:前/中级ASP开发人员,WAI&网络标准



Content-Type: application/x-pointplus

This is quite a common server configuration clash with css files.
Configure the server to send CSS files with mime-type "text/css".
--
Andrew Urquhart
- Contact: www.andrewu.co.uk/contact/
- Employ me: Front/middle tier ASP developer with WAI & web standards


这篇关于样式表没有出现在FireFox和Camino中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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