CSS块位置和IE的问题 [英] Problems with CSS block position and IE

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

问题描述

我有点时间了,我希望有人可以快速看看他们是否能够识别可能出现的问题并指出

我正确的方向。


我的博客页面: http://www.celticbear.com/weblog/ 在Firefox中看起来不错
和Opera,但在IE6中,主体块位于

左侧菜单栏。


我已经W3C验证了XML Schema,HTML和CSS并修复了几个

错误这三个现在给我一个有效的指示器。


我已经使用Firefox中的Developer Tools扩展来查看块

信息,并看到了我拿出的冗余元素。否则,我找不到问题所在的




我在样式表中改变了字体,边距,填充和宽度,

并且似乎没有任何改进。


无论如何,我是CSS的新手,所以我希望有人可以快速浏览一下

马上就知道了啊,你似乎对催化剂

转换器有问题!检查一下。只需一个好的线索,一个方向,就是我所需要的,

如果可能的话。


感谢您的任何反馈!

利亚姆

解决方案

此外还有 ne**@celticbear.com

我的博客页面: http://www.celticbear.com/weblog/ 在Firefox
和Opera中看起来不错,但在IE6中,主体块位于
左侧菜单栏下方。



我用IE5.0进行了快速测试(问题也出现在那里)。我不是确定实际发生了什么,而是改变了保证金。 填充在

#content和#sidebar做了诀窍:


#content {

/ * margin:0 10px 0 0; * /

填充:0 10px 0 0;

}


#sidebar {

/ *保证金:0 0 0 10px; * /

填充:0 0 0 10px;

}


问候,

托马斯





Thomas Mlynarczyk写道:

还有 ne ** @ celticbear.com

我的博客页面: http://www.celticbear.com/weblog/ 在Firefox
和Opera中看起来不错,但在IE6中,主要是body块位于
左侧菜单栏下方。



我用IE5.0进行了快速测试(问题也出现在那里)。我不确定究竟发生了什么,但改变了保证金。 填充在#content和#sidebar中诀窍:

#content {
/ * margin:0 10px 0 0; * /
填充:0 10px 0 0;
}

#sidebar {
/ * margin:0 0 0 10px; * /
填充:0 0 0 10px;
}

问候,
托马斯




谢谢对于回复!

我尝试进行更改,它在IE6中仍然被破坏。

但是,我从未想过边距/填充问题。我会通过并且

在整张表中替换所有这些,看看是否会产生

的差异。

谢谢!

Liam


ne**@celticbear.com 写道:


我的博客页面: http://www.celticbear.com/weblog/ 在Firefox中看起来不错




嗯...也许你应该尝试缩放文本在得出结论之前,还是两个b
。或者你期待一个水平的

滚动条和一些重叠的文本?


-

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

请回复小组,以便大家分享。


I''m having a heck of a time, and I''m hoping someone can take a quick
look and see if they can recognize what might be the problem and point
me the right direction.

My blog page: http://www.celticbear.com/weblog/ looks fine in Firefox
and Opera, but in IE6, the main body block positions itself below the
left menu bar.

I''ve W3C validated the XML Schema, HTML, and CSS and fixed a couple of
errors and all three now give me a "valid" indicator.

I''ve used the Developer Tools extension in Firefox to look at the block
info, and saw a redundant element I took out. Otherwise, I can''t find
where the problem lies.

I''ve changed font, margin, padding, and width all over the stylesheet,
and can''t seem to effect any improvement.

Anyway, I''m new to CSS, so I''m hoping someone can take a quick look and
know right off "Ah, you appear to have a problem with the catalytic
converter! Check that." Just a good clue, a direction, is all I need,
if possible.

Thanks for any feedback!
Liam

解决方案

Also sprach ne**@celticbear.com:

My blog page: http://www.celticbear.com/weblog/ looks fine in Firefox
and Opera, but in IE6, the main body block positions itself below the
left menu bar.



I did a quick test with IE5.0 (the problem appears there as well). I''m not
sure what''s really going on, but changing the "margin" to "padding" in
#content and #sidebar did the trick:

#content {
/* margin: 0 10px 0 0; */
padding: 0 10px 0 0;
}

#sidebar {
/* margin: 0 0 0 10px; */
padding: 0 0 0 10px;
}

Greetings,
Thomas




Thomas Mlynarczyk wrote:

Also sprach ne**@celticbear.com:

My blog page: http://www.celticbear.com/weblog/ looks fine in Firefox
and Opera, but in IE6, the main body block positions itself below the
left menu bar.



I did a quick test with IE5.0 (the problem appears there as well). I''m not
sure what''s really going on, but changing the "margin" to "padding" in
#content and #sidebar did the trick:

#content {
/* margin: 0 10px 0 0; */
padding: 0 10px 0 0;
}

#sidebar {
/* margin: 0 0 0 10px; */
padding: 0 0 0 10px;
}

Greetings,
Thomas



Thanks for the reply!
I tried making that change, and it''s still broken in IE6.
But, I''d never thought of a margin/padding problem. I''ll go through and
replace all of them in the whole sheet and see if that makes a
difference.
Thanks!
Liam


ne**@celticbear.com wrote:


My blog page: http://www.celticbear.com/weblog/ looks fine in Firefox



Hmmm... perhaps you should have tried zooming text up a notch or two
before coming to that conclusion. Or were you expecting a horizontal
scrollbar and some overlapping text?

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


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

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