中级儿童伪级 [英] Middle Child Pseudo-Class

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

问题描述

是否可以使用CSS选择器在元素列表中获取中间子元素?

Is there a way to use CSS selectors to get the middle child in a list of elements?

我知道没有文字:middle-child选择器,但是还有另一种不求助于Javascript的方法吗?

I know that there is no literal :middle-child selector, but is there another way without resorting to Javascript?

推荐答案

JavaScript是实现此客户端的唯一方法.

Javascript is the only way to do this client side.

这篇关于中级儿童伪级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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