CSS练习小游戏:CSS Diner练习地址及答案

本文提供了CSSDiner练习的详细答案,涵盖了从基础到高级的各种CSS选择器用法,包括ID选择器(#fancy)、类选择器(.small)、子元素选择器(>), 伪类选择器(:first-child)以及属性选择器([for])等,旨在帮助读者巩固和提升CSS选择器的运用技巧。
摘要由CSDN通过智能技术生成

CSS Diner练习地址:https://flukeout.github.io/
在这里插入图片描述

练习题答案

1plate
2 bento
3#fancy
4plate>apple/plate apple
5#fancy>pickle/#fancy pickle
6.small
7orange.small
8bento>orange.small/bento orange.small
9plate,bento
10*
11plate>*/plate*
12plate+apple
13bento~pickle
14plate>apple
15plate>orange:first-child/plate orange:first-child
16plate :only-child
17apple,pickle/:last-child:not(orange)
18:nth-child(3)/plate:nth-child(3)
19bento:first-of-type/bento:nth-last-child(3)/ :nth-last-child(3):not(orange)
20apple:first-of-type
21:nth-of-type(2n)/:nth-of-type(even)/plate:nth-of-type(2n)/plate:nth-of-type(even)
22:nth-of-type(2n+3)/plate:nth-of-type(2n+3)
23plate apple:only-of-type
24orange:last-of-type,apple:last-of-type
25bento:empty
26apple:not(.small)
27[for]
28plate[for]
29[for="Vitaly"]
30[for^="Sa"]
31[for$="ato"]
32[for*="obb"]

在这里插入图片描述

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yitahutu79

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值