餐廳練習(xí)題

  1. plate 元素選擇器
  2. bento 元素選擇器
  3. #fancy ID選擇器
  4. plate apple 后代元素選擇器
  5. #fancy pickle 復(fù)合選擇器
  6. .small 類選擇器
  7. bento .small,plate .small并集選擇器
  8. bento orange 后代元素選擇器
  9. plate,bento,plate 并集選擇器
  10. * 通配選擇器
  11. plate * 后代元素選擇器 (plate中的所有元素)
  12. plate + apple 兄弟元素選擇器
  13. bento~pickle 兄弟元素選擇器(bento后面所有的pickle)
  14. plate > apple 子元素選擇器
  15. orange:first-child 子元素選擇器
  16. :only-child 子元素選擇器(只有一個子元素的)
  17. .small:last-child 子元素選擇器
  18. plate:nth-child(3) 子元素選擇器
  19. :nth-last-child(4)子元素選擇器
  20. apple:first-of-type 子元素選擇器
  21. plate:nth-of-type(even) 子元素選擇器
  22. plate:nth-of-type(2n+3)子元素選擇器
  23. apple:only-of-type 子元素選擇器
  24. .small:nth-child(even) 子元素選擇器
  25. bento:empty 子元素選擇器(子元素為空)
  26. apple:not(.small) not選擇器
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 1-----plate 元素選擇器2-----bento 元素選擇器3-----#fancy ID選擇器4----...
    HDhandi閱讀 1,886評論 0 0
  • 作業(yè)答案:1.plate 元素選擇器2.bento 元素選擇器3.#fancy id選擇器4.plate appl...
    精彩i人生閱讀 527評論 0 0
  • css樣式分為內(nèi)部樣式表:CSS樣式編寫到head中的style標(biāo)簽里,通過CSS選擇器選定指定元素,可以同時為這...
    憶往昔04551閱讀 230評論 0 0
  • 餐廳游戲答案:1·plate 2·bento 3·#fancy 4·apple:first-child() 5·#...
    卝婯閱讀 282評論 0 0
  • 獅子生來就是獨(dú)處的,不需要跟各種動物混成一片 動物們敬畏就好。 狗生來就會搖尾巴,跟每個動物都是朋友 也只是朋友。...
    鯨落惜閱讀 162評論 0 0

友情鏈接更多精彩內(nèi)容