浏览器支持CSS:first-child和:last-child [英] Browser support for CSS :first-child and :last-child
本文介绍了浏览器支持CSS:first-child和:last-child的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道哪些浏览器/版本支持他们?
Does anyone know which browsers/version support them?
是否可以安全使用它们,还是应该使用PHP / javascript生成第一/
Is it safe to use them, or should I resort to PHP / javascript to generate first/last classes?
推荐答案
:first-child 和:last-child
,以及免费的兼容性图表。
: first-child
正确支持IE9,IE7和IE8排序(见图表)。
:first-child
is supported IE9 properly, and IE7 and IE8 sort of (see chart).
:last-
:last-child
is supported by IE9+ only.
这篇关于浏览器支持CSS:first-child和:last-child的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文