IE4和IE5的CSS解决方法 [英] CSS workaround for IE4 and IE5

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

问题描述

大家好,

以下网站在最新的IE5,IE6和Firefox上看起来很好。

但是,在旧版本的Internet Explorer中,菜单重叠

文本。有谁知道这是为什么,或者是否有某种类型的

解决方法使得它看起来对所有浏览器都有好处?


网站: http://www.hansstolp.nl/nieuws.php

CSS: http://www.hansstolp.nl/templates/style。 css


感谢您的帮助!


-

Daan

解决方案

On Sun,2004年9月12日15:37:33 +0200,Daan< d _ ***** @ nospamhotmail.com>

写道:

以下网站在最新的IE5,IE6和Firefox上看起来很好。
但是,在旧版本的Internet Explorer中,菜单重叠了
文本。有没有人知道为什么会这样,或者是否有某种形式的解决方法使它对所有浏览器看起来都很好?




你有特别的吗?想要支持IE4的原因? IE版本上涨了4美元到4美元的Netscape版本,所有版本合起来,现在只占大多数读者人数的1%,而且每个月都在减少。


我建议您只需确保您的页面在这些浏览器中可读,而不用担心它们看起来特别好。

最简单的方法是使用

@import完全隐藏CSS。


-

Stephen Poley < > http://www.xs4all.nl/~ sbpoley / webmatters /


Stephen Poley写道:

On Sun,2004年9月12日15:37:33 +0200,Daan < d _ ***** @ nospamhotmail.com>
写道:

以下网站在最新的IE5,IE6和Firefox上看起来很好。<但是,在旧版本的Internet Explorer中,菜单与
te重叠XT。有谁知道这是为什么,或者是否存在某种类型的解决方法,使其看起来对所有浏览器都有好处?



您是否有特殊原因需要支持IE4? IE版本最多4个版本和Netscape版本最多4个版本,所有这些版本合起来,现在只占大多数读者的1%,而且每个月都在减少。

我建议您只需确保您的页面在这些浏览器中可读,而不必担心它们看起来特别好。
最简单的方法是使用
@import完全隐藏CSS 。




好​​吧,如果不支持IE4,我可以忍受。但是既然我的叔叔

(我为这个网站制作了这个网站),使用旧版IE5(我认为

IE5.01),我希望网站看起来不错在该版本中,以及

较新的浏览器。我以前在

示例CSS代码中看到了一些针对不同浏览器版本的黑客攻击,但我不知道如何在这种情况下实现哪个hack

。 br />

-

Daan


2004年9月13日星期一14:37:45 +0200 ,Daan< d _ ***** @ nospamhotmail.com>

写道:

Stephen Poley写道:

On太阳,2004年9月12日15:37:33 +0200,Daan< d _ ***** @ nospamhotmail.com>
写道:

以下网站看起来不错最新的IE5,IE6和Firefox。
然而,在旧版本的Internet Explorer中,菜单与
文本重叠。有谁知道这是为什么,或者是否存在某种类型的解决方法,使其对所有浏览器都有好处?



你有特殊的理由想要支持IE4? IE版本最多4个版本和Netscape版本最多4个版本,所有这些版本合起来,现在只占大多数读者的1%,而且每个月都在减少。

我建议您只需确保您的页面在这些浏览器中可读,而不必担心它们看起来特别好。
最简单的方法是使用
@import完全隐藏CSS 。



好吧,如果不支持IE4,我可以忍受。但是,自从我的叔叔
(我为此网站制作),使用旧版本的IE5(我认为是IE5.01),我希望该网站在该版本中看起来不错,以及
更新的浏览器。我以前在
示例CSS代码中看到了一些针对不同浏览器版本的黑客攻击,但在这种情况下我不知道如何实现哪个hack




好​​的,对于IE5,你通常必须使用宽度值和

填充值,因为它使用了破坏的CSS盒子模型。一旦你弄清楚你需要什么

,你首先放置IE5特定的位,然后放置Tantek hack,

然后是其他浏览器的值。见
http://w3development.de/css/hide_css_from_browsers/ 有关

hack的详细信息。


-

Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Hello everyone,

The following website looks fine on the latest IE5, IE6 and Firefox.
However, in older versions of Internet Explorer, the menu overlaps the
text. Does anyone know why this is, or if there is some sort of a
workaround such that it looks good for all browsers?

Site: http://www.hansstolp.nl/nieuws.php
CSS: http://www.hansstolp.nl/templates/style.css

Thanks for any help!

--
Daan

解决方案

On Sun, 12 Sep 2004 15:37:33 +0200, Daan <d_*****@nospamhotmail.com>
wrote:

The following website looks fine on the latest IE5, IE6 and Firefox.
However, in older versions of Internet Explorer, the menu overlaps the
text. Does anyone know why this is, or if there is some sort of a
workaround such that it looks good for all browsers?



Do you have a special reason for wanting to support IE4? IE versions up
to 4 and Netscape versions up to 4, all put together, make up barely 1%
of most readerships these days, and are decreasing every month.

I would recommend that you simply make sure your pages are readable in
those browsers, without worrying about them looking particularly good.
The simplest way is to hide the CSS from them completely by using
@import.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Stephen Poley wrote:

On Sun, 12 Sep 2004 15:37:33 +0200, Daan <d_*****@nospamhotmail.com>
wrote:

The following website looks fine on the latest IE5, IE6 and Firefox.
However, in older versions of Internet Explorer, the menu overlaps the
text. Does anyone know why this is, or if there is some sort of a
workaround such that it looks good for all browsers?


Do you have a special reason for wanting to support IE4? IE versions up
to 4 and Netscape versions up to 4, all put together, make up barely 1%
of most readerships these days, and are decreasing every month.

I would recommend that you simply make sure your pages are readable in
those browsers, without worrying about them looking particularly good.
The simplest way is to hide the CSS from them completely by using
@import.



Well, if IE4 is not supported, I can live with that. But since my uncle
(who I made this site for), uses an older version of IE5 (I think
IE5.01), I want the site to look good in that version, as well as the
newer browsers. I''ve seen some hacks for different browser versions in
sample CSS codes before, but I wouldn''t know how to implement which hack
in this case.

--
Daan


On Mon, 13 Sep 2004 14:37:45 +0200, Daan <d_*****@nospamhotmail.com>
wrote:

Stephen Poley wrote:

On Sun, 12 Sep 2004 15:37:33 +0200, Daan <d_*****@nospamhotmail.com>
wrote:

The following website looks fine on the latest IE5, IE6 and Firefox.
However, in older versions of Internet Explorer, the menu overlaps the
text. Does anyone know why this is, or if there is some sort of a
workaround such that it looks good for all browsers?



Do you have a special reason for wanting to support IE4? IE versions up
to 4 and Netscape versions up to 4, all put together, make up barely 1%
of most readerships these days, and are decreasing every month.

I would recommend that you simply make sure your pages are readable in
those browsers, without worrying about them looking particularly good.
The simplest way is to hide the CSS from them completely by using
@import.



Well, if IE4 is not supported, I can live with that. But since my uncle
(who I made this site for), uses an older version of IE5 (I think
IE5.01), I want the site to look good in that version, as well as the
newer browsers. I''ve seen some hacks for different browser versions in
sample CSS codes before, but I wouldn''t know how to implement which hack
in this case.



OK, for IE5 you typically have to play around with values for width and
padding, as it uses a broken CSS box-model. Once you''ve worked out what
you need, you place the IE5-specific bits first, then the Tantek hack,
then the values for other browsers. See
http://w3development.de/css/hide_css_from_browsers/ for details of the
hack.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


这篇关于IE4和IE5的CSS解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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