parent>子CSS选择器 [英] parent>child CSS selector

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

问题描述

我经常使用这个CSS选择器parent> child。我的设计在Mozilla和Opera看起来不错。



但在IE中,它吸。我知道> 是不可识别的IE,但什么是IE的替代呢?

解决方案

在IE6中没有直接子选择器的替代方法b
$ b

而是需要使用后代选择器(空格)并设计你的类来补偿。


I frequently use this CSS selector parent>child. My design looks good in Mozilla and Opera.

But in IE, it sucks. I know > is not recognizable in IE, but what is the alternate to that in IE?

解决方案

There is no alternate for the direct child selector in IE6 (it should work in IE7 though).

Instead you need to use the descendant selector (a space) and design your classes to compensate.

这篇关于parent>子CSS选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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