CSS在资源管理器中向上级联 - 这是一个错误吗? [英] CSS cascading upwards in explorer - is this a bug?

查看:75
本文介绍了CSS在资源管理器中向上级联 - 这是一个错误吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一个小导航栏放在一起并有一个MAIN和

然后是一个SUB导航,它具有用Javscript触发的可见性。


我遇到的问题是在firefox中我可以用不同的颜色对两个级别的

导航进行着色,但是在资源管理器中,/ b $ b中的A元素的红色是navSub。 DIV跳起一个级别并级联到前面的导航

DIV我虽然级联应该发生向下而不是向上。

我可以有两种不同的颜色吗?不同的HOVER颜色正在工作,

只是不是标准的链接颜色???


HTML和CSS都验证没有错误或警告,所以我不知道我想

我做了什么愚蠢的事。它只是一个资源管理器的错误吗?


别担心,红色只是用作示例颜色,我真的想要为subNav提供
黑色。

I''m trying to put together a little navigation bar and have a MAIN and
then a SUB navigation which has visibility triggered with Javscript.

The problem I have is that In firefox I can colour both levels of
navigation a differently, but in Explorer the RED of the A element in
the "navSub" DIV jumps up a level and cascades to the preceeding "nav"
DIV I though cascading was supposed to happen downwards not upwards.
Can I have two different colours? Different HOVER colours are working,
just not the standard link colours???

Both HTML and CSS validate with no errors or warnings, so I don''t think
I have done anything stupid. Is it just an Explorer bug?

Don''t worry, the red is just used as an example colour, I really want
black for the subNav.

推荐答案

2005年3月1日20:30:36 -0800 ru ************ @ gmail.com 写道:
On 1 Mar 2005 20:30:36 -0800 ru************@gmail.com wrote:
我'我试图把一个小导航栏放在一起,然后有一个MAIN和
然后是一个SUB导航,它有Javscript引发的可见性。

我遇到的问题是在Firefox中我可以为两者着色
导航的级别不同,但在资源管理器中,navSub中的A元素的红色。 DIV跳起一个级别并级联到前面的导航
DIV我虽然级联应该发生向下而不是向上。
我可以有两种不同的颜色吗?不同的HOVER颜色正在工作,
只是没有标准的链接颜色???

HTML和CSS都验证没有错误或警告,所以我不认为
我做了什么愚蠢的事。它只是一个资源管理器的错误吗?

不要担心,红色只是用作示例颜色,我真的想要为subNav设置黑色。
I''m trying to put together a little navigation bar and have a MAIN and
then a SUB navigation which has visibility triggered with Javscript.

The problem I have is that In firefox I can colour both levels of
navigation a differently, but in Explorer the RED of the A element in
the "navSub" DIV jumps up a level and cascades to the preceeding "nav"
DIV I though cascading was supposed to happen downwards not upwards.
Can I have two different colours? Different HOVER colours are working,
just not the standard link colours???

Both HTML and CSS validate with no errors or warnings, so I don''t think
I have done anything stupid. Is it just an Explorer bug?

Don''t worry, the red is just used as an example colour, I really want
black for the subNav.


如果你正在使用< ul>< li>组合,您可以按照您想要的任何方式定义每个级别。

或者您可以将每个单独的项目放入一个部门并相应地定义部门



If you''re using <ul><li> combos, you can define each level any way you want.
Or you can put each seperate item into a division and define the divisions
accordingly.


ru ************ @ gmail .com 写道:
ru************@gmail.com wrote:
我正在尝试将一个小导航栏放在一起并有一个MAIN和
然后一个SUB导航,它具有触发的可见性Javscript。

我遇到的问题是在Firefox中我可以用不同的颜色导航两个级别的导航,但是在资源管理器中,navSub中的A元素的红色; DIV跳起一个级别并级联到前面的导航
DIV我虽然级联应该发生向下而不是向上。
我可以有两种不同的颜色吗?不同的HOVER颜色正在工作,
只是没有标准的链接颜色???
I''m trying to put together a little navigation bar and have a MAIN and
then a SUB navigation which has visibility triggered with Javscript.

The problem I have is that In firefox I can colour both levels of
navigation a differently, but in Explorer the RED of the A element in
the "navSub" DIV jumps up a level and cascades to the preceeding "nav"
DIV I though cascading was supposed to happen downwards not upwards.
Can I have two different colours? Different HOVER colours are working,
just not the standard link colours???




如果没有URL,就无法说出任何内容。


史蒂夫


-

我的理论给你起见,我的异端邪说你,

我从不回信,你也不喜欢我的领带。 - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>



Can''t tell anything without a URL.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


哎呀,这太傻了。你工作到凌晨5点我觉得...


给你这个...


server-space.co.uk/ rachel / index.htm

server-space.co.uk/rachel/style.css

Oops, that was silly. What you get for working till 5am I guess...

Here you go...

server-space.co.uk/rachel/index.htm
server-space.co.uk/rachel/style.css


这篇关于CSS在资源管理器中向上级联 - 这是一个错误吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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