首页 新闻 会员 周边

CSS选择器:怎么选中每个意思下的第一个例句?

0
悬赏园豆:5 [已解决问题] 解决于 2023-01-14 12:03

对于这个页面https://fanyi.baidu.com/#en/zh/good
想要选中每个意思下的第一个例句,
比如:
第一个意思下面选中的是:a good book
第二个意思下面选中的是:Did you have a good time in London?
第三个意思下面选中的是:Thank you, good question .
……
请问CSS选择器该怎么写?我目前写成这样不起作用。
p.entry-x-en:first-child { color: red; }

css
iMath的主页 iMath | 菜鸟二级 | 园豆:202
提问于:2023-01-13 20:55
< >
分享
最佳答案
0
.entry-x:first-of-type p.entry-x-en:first-child {
  color: red;
}
收获园豆:5
by.Genesis | 老鸟四级 |园豆:2719 | 2023-01-14 10:08

多谢!后来我改成
.entry-x:first-of-type p.entry-x-en

iMath | 园豆:202 (菜鸟二级) | 2023-01-14 12:03

大哥,我碰到了个新问题,能否帮我看一下,谢谢!https://q.cnblogs.com/q/142472/

iMath | 园豆:202 (菜鸟二级) | 2023-01-18 14:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册