美文网首页
选择器作业

选择器作业

作者: zmm0404 | 来源:发表于2018-09-09 22:53 被阅读0次
  1. 元素选择器:plate
  2. 元素选择器:bento
  3. id选择器:#fancy
  4. 后代选择器:plate>apple
  5. 复合后代:plate#fancy>pickle
  6. 类选择器:.small
  7. 类选择器:orange.small
  8. 后代 类选择器:bento>apple.small
  9. 后代选择器:plate,bento
  10. 所有元素选择器:*
  11. 后代选择器:plate>
  12. 兄弟选择器: plate + apple
  13. 兄弟选择器:bento~ pickle
  14. 后代选择器:plate>apple
  15. 后代选择器+第一个后代选择器:plate>orange:first-of-type
  16. 后代选择器 复合选择器:plate>apple,plate>pickle
  17. 交集选择器 最后一个后代:#fancy apple,pickle:last
  18. 子选择器:plate:nth-child(3)
  19. 子选择器:bento:first-of-type
  20. first-of-type:apple:first-of-type
  21. 偶数-字选择器:plate:nth-child(even)
  22. 子选择器:plate:nth-child(2n+3)
  23. 子选择器(唯一选择器):apple:only-of-type
  24. 字选择器(last-of-type):orange:last-of-type ,apple:last-of-type
  25. 子选择器(empty):bento:empty
  26. 否定伪类:apple:not(.small)

相关文章

  • 前端(02 HTML知识)

    作业答案: plate 元素选择器 bento 元素选择器 #fancy id选择器 plate apple 后代...

  • 作业 (游戏,博客)

    作业答案: plate 元素选择器 bento 元素选择器 #fancy id选择器 plate apple 后代...

  • css diner游戏

    作业答案: 1.plate 元素选择器2.bento 元素选择器3.#fancy id选择器4.plate app...

  • HTML练习题2

    作业答案:1.plate 元素选择器2.bento 元素选择器3.#fancy id选择器4.plate appl...

  • 封装函数作业回顾

    作业: 分析:all div 加 class="red" 判断 后 获取 选择器or节点选择器---返回hash...

  • 17-18日作业

    问答作业 1.什么是CSS语法 2.列举常见的CSS选择器 标签选择器:顾名思议,标签选择器是直接将HTML标签作...

  • 选择器作业

    元素选择器:plate 元素选择器:bento id选择器:#fancy 后代选择器:plate>apple 复合...

  • 第二次作业

    问答作业: 1.css语法: css语法由选择器、属性和值组成。选择器通常是你希望定义的 HTML 元素或标签,属...

  • 第二次作业(学习中碰到的各种问题)

    1.作业 1.1什么是css语法? 答:CSS 语法由三部分构成:选择器、属性和值。CSS又名层叠样式表,选择器通...

  • css3选择器总结

    选择器分基本选择器和拓展选择器 基本选择器:id选择器,类选择器,元素选择器,通用选择器 拓展选择器:群组选择器,...

网友评论

      本文标题:选择器作业

      本文链接:https://www.haomeiwen.com/subject/hlzqgftx.html