Internet Explorer无法正确呈现CSS - 在Firefox中很好 [英] Internet Explorer not rendering CSS properly - fine in Firefox

查看:62
本文介绍了Internet Explorer无法正确呈现CSS - 在Firefox中很好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE 6

Firefox看起来很好。

我通过W3C验证器运行了我的html和css。 html很好

和css得到以下内容:


"行:3(等级:1)你的背景颜色没有颜色:

身体线条:23(等级:1)你没有背景颜色你的颜色

:div #content h1行:25(等级:1)姓氏包含

空格应该引用。如果省略引用,则忽略名称前后的任何空格

字符,并且名称中的任何序列

空白字符将转换为单个空格。 :

div #content h1行:28(等级:1)包含空格的姓氏

应该被引用。如果省略引用,则忽略名称前后的任何空格字符

,并且名称中的任何空格序列将转换为单个空格。 :

div #content h2行:31(等级:1)包含空格的姓氏

应该被引用。如果省略引用,则忽略名称前后的任何空格字符

,并且名称中的任何空格序列将转换为单个空格。 :

div #content h3行:36(等级:1)你没有背景颜色

你的颜色:em.emRed"

这些似乎不会导致我的问题,即文本超过

text。以下在Fi​​refox中运行良好但在IE6中看起来像这样:
http://home.cfl.rr.com/jmartin104/uhf/

我是CSS和学习的新手。发生了什么?

IE 6
Firefox looks just fine.
I have run my html and css through the W3C validator. The html is fine
and the css gets the following:

"Line : 3 (Level : 1) You have no color with your background-color :
body Line : 23 (Level : 1) You have no background-color with your color
: div#content h1 Line : 25 (Level : 1) Family names containing
whitespace should be quoted. If quoting is omitted, any whitespace
characters before and after the name are ignored and any sequence of
whitespace characters inside the name is converted to a single space. :
div#content h1 Line : 28 (Level : 1) Family names containing whitespace
should be quoted. If quoting is omitted, any whitespace characters
before and after the name are ignored and any sequence of whitespace
characters inside the name is converted to a single space. :
div#content h2 Line : 31 (Level : 1) Family names containing whitespace
should be quoted. If quoting is omitted, any whitespace characters
before and after the name are ignored and any sequence of whitespace
characters inside the name is converted to a single space. :
div#content h3 Line : 36 (Level : 1) You have no background-color with
your color : em.emRed "
These do not seem like they would cause my issue, which is, text over
text. The following works fine in Firefox but looks like this in IE6:
http://home.cfl.rr.com/jmartin104/uhf/
I''m new to CSS and learning. What is going on?

推荐答案

TC写道:

以下在Fi​​refox中工作正常但看起来像这在IE6中:
http://home.cfl.rr .com / jmartin104 / uhf /




如果你要绝对定位,你应该设置

顶部,左侧,右侧和/或底部属性。建议你开始

顶部:0和左:0然后调整味道。


-

回复电子邮件地址是一个无底的垃圾桶。

请回复小组,以便每个人都可以分享。



If you''re going to absolutely position something, you should set the
top, left, right and/or bottom properties as well. Suggest you start
with top:0 and left:0 then adjust to taste.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.


TC写道:
TC wrote:
IE 6
Firefox看起来很好。
我通过W3C验证器运行我的html和css。 html很好
并且css得到以下内容:
< snip errors>


修复错误,因为浏览器有权忽略不良CSS。

这些似乎不会导致我的问题,即文本超过
文本。以下在Fi​​refox中运行良好但在IE6中看起来像这样:
http://home.cfl.rr.com/jmartin104/uhf/

404.如果您提供相关页面的URL,将会有很大帮助。

我是CSS和学习的新手。发生了什么事?
IE 6
Firefox looks just fine.
I have run my html and css through the W3C validator. The html is fine
and the css gets the following: <snip errors>

Fix the errors, because browsers have the right to ignore bad CSS.
These do not seem like they would cause my issue, which is, text over
text. The following works fine in Firefox but looks like this in IE6:
http://home.cfl.rr.com/jmartin104/uhf/
404. It will help greatly if you give a URL to the page in question.
I''m new to CSS and learning. What is going on?




直到我们看到页面才知道。


-

-bts

-警告:我为草坪鹿刹车



Can''t tell until we can see the page.

--
-bts
-Warning: I brake for lawn deer


kchayka写道:
kchayka wrote:
TC写道:

以下在Fi​​refox中运行良好,但在IE6中看起来像这样:
http://home.cfl.rr.com/jmartin104/uhf/



如果你要绝对定位某些东西,你也应该设置
顶部,左侧,右侧和/或底部属性。建议你开始
顶部:0和左:0然后调整味道。



If you''re going to absolutely position something, you should set the
top, left, right and/or bottom properties as well. Suggest you start
with top:0 and left:0 then adjust to taste.




这似乎解决了这个问题。谢谢!



That seems to fix that problem. Thanks!


这篇关于Internet Explorer无法正确呈现CSS - 在Firefox中很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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