我的样式表的Firefox和IE问题 [英] Firefox and IE problems with my stylesheet

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

问题描述

好的,我正努力成为一个好小男孩并创建一个不会使用框架的网站:)事情进展顺利,直到我上传了什么

我到目前为止对网络服务器做的很少(也就是说,东西在我的本地机器上显示得非常好 - 不完美,但我们会得到

以后)。


所以这里是网站: http://www.wesleyumc-vinton.org/beta/index.html


此页显示相当不错在IE中,但是所有的图形和样式都在Firefox中消失了,尽管它可以在我的本地系统上运行。任何人都可以告诉我Firefox的问题是什么?
我已在我的

本地系统上验证了W3C,并且它说有一个解析错误


#menu_graphic {background-image:url(img) /menu.jpg); background-repeat:

no-repeat;身高:432px;宽度:170px; }


但我不清楚这意味着什么。我自己也看不出错误。我还试图在服务器上验证它,但它只是说了一些关于

一个未知的哑剧类型,我也不明白。


其次,当你在IE中查看页面时,你会注意到菜单链接中的文本

有点偏离 - 实际上是1个像素。 Home是

定位正常,Action是关闭像素,学习是2像素关闭等等。

当我在本地系统上使用Firefox查看时,链接是

正确定位。


有没有一个技巧我还没学会做这个

列表项的位置两个浏览器中出现在同一个地方而没有创建

单独的样式表?


感谢您的帮助...


AJ

Ok, I''m trying to be a good little boy and create a site that doesn''t
use frames :) Things were going along decently until I uploaded what
little I have done so far to the web server (that is, things were
displaying pretty well on my local machine - not perfect, but we''ll get
to that later).

So here''s the site: http://www.wesleyumc-vinton.org/beta/index.html

This page displays pretty good in IE, but all the graphics and styles
are gone in Firefox, though it works on my local system. Can anyone
tell me what is Firefox''s problem? I have validated it at W3C on my
local system and it says that there is a parse error at

#menu_graphic { background-image: url(img/menu.jpg); background-repeat:
no-repeat; height: 432px; width: 170px; }

but I''m not clear on what this means. I can''t see an error myself. I
also tried validating it at the server but it only says something about
an unknown mime type, that I don''t understand either.

Secondly, when you look at the page in IE, you''ll notice that the text
in the menu links is a little bit off - 1 pixel actually. Home is
positioned fine, Action is a pixel off, Learning is 2 pixels off, etc.
When I look at this on my local system with Firefox, the links are
positioned correctly.

Is there a trick I haven''t learned yet to making the position of this
list items appear in the same place in both browsers without creating
separate stylesheets?

Thanks for any help...

AJ

推荐答案

AJBopp写道:
好的,我想成为一个好人小男孩,并创建一个不使用框架的网站:)事情进展顺利,直到我上传到目前为止我做的很少的东西到网络服务器(也就是说,事情是
在我的本地机器上显示得非常好 - 不完美,但我们稍后会得到


所以这里是网站: http://www.wesleyumc-vinton.org/beta/index.html

此页面显示相当不错IE,但所有的图形和样式都在Firefox中消失了,虽然它可以在我的本地系统上运行。任何人都可以告诉我Firefox的问题是什么吗?我已经在我的
本地系统上的W3C上验证了它,并说它有一个解析错误

#menu_graphic {background-image:url(img / menu.jpg); background-repeat:
no-repeat;身高:432px;宽度:170px; }

但我不清楚这意味着什么。我自己也看不到错误。
Ok, I''m trying to be a good little boy and create a site that doesn''t
use frames :) Things were going along decently until I uploaded what
little I have done so far to the web server (that is, things were
displaying pretty well on my local machine - not perfect, but we''ll get
to that later).

So here''s the site: http://www.wesleyumc-vinton.org/beta/index.html

This page displays pretty good in IE, but all the graphics and styles
are gone in Firefox, though it works on my local system. Can anyone
tell me what is Firefox''s problem? I have validated it at W3C on my
local system and it says that there is a parse error at

#menu_graphic { background-image: url(img/menu.jpg); background-repeat:
no-repeat; height: 432px; width: 170px; }

but I''m not clear on what this means. I can''t see an error myself.




这是你的样式表:

..menu

/ *设置左侧菜单框的属性* /


#menu_graphic


取出.menu之间的评论和#menugraphic,你不会得到

那个错误



This is from your style sheet:
..menu
/* Set the properties of the menu frame on the left side */

#menu_graphic

Take out the comment between .menu and #menugraphic and you won''t get
that error


谢谢!这消除了一个问题。现在,如果我可以在Firefox中获得CSS for

渲染! :)


AJ

Thanks! That eliminates one problem. Now if I could just get teh CSS to
render in Firefox! :)

AJ


AJBopp写道:
谢谢!这消除了一个问题。现在,如果我可以在Firefox中使用CSS进行渲染! :)

AJ
Thanks! That eliminates one problem. Now if I could just get teh CSS to
render in Firefox! :)

AJ



必须与您的服务器有关。

这是我的同一页面服务器,它在Firefox中运行良好
http://www.reenie。 org / test / test3 /


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

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