[英]Is css :last-child supported in all browsers?
是:上一个孩子在所有主流浏览器中工作?
It's not supported in IE 8 and lower but all other modern browsers support it including IE9+, Chrome 2+, Fx 3+, Safari 3.1+ and Opera 9.5+. IE 8及更低版本不支持它,但所有其他现代浏览器都支持它,包括IE9 +,Chrome 2 +,Fx 3 +,Safari 3.1+和Opera 9.5+。
References: 参考文献:
Short answer: No. 简答:不。
Internet Explorer 7 and 8 are still two of the most used browsers , and they don't support the :last-child
pseudoclass. Internet Explorer 7和8仍然是最常用的两种浏览器 ,它们不支持
:last-child
伪类。
No it isn't. 不,不是。 Most browsers support it since one or two years, MS IE still lacks support.
大多数浏览器支持它一两年,MS IE仍然缺乏支持。
http://reference.sitepoint.com/css/pseudoclass-lastchild#compatibilitysection http://reference.sitepoint.com/css/pseudoclass-lastchild#compatibilitysection
简而言之,它适用于所有主流浏览器的最新版本 ,但在IE9之前它不受支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.