• 2022-06-17
    子元素选择器中匹配元素中唯一的子元素是()
    A: :first-child
    B: :last-child
    C: :only-child
    D: :nth-child
  • C

    内容

    • 0

      下列关于jQuery选择器说法错误的是() A: 使用:only-child选择器只能获取一个子元素 B: pre ~ siblings 选择器与siblings( )方法的使用效果一致 C: first -child与:first 选择器都能用来获取ul下的li元素 D: parent>child选择器与children( )方法使用的效果一致

    • 1

      若要选择指定元素的唯一元素,应使用的选择器是( )。 A: :first-child B: :last-child C: :only-child D: :only-of-type

    • 2

      要想匹配属于其父元素的第N个子元素,应该选择的选择器是() A: :nth-last-child(n) B: :nth-child(n) C: :first-child D: :last-child

    • 3

      下列有关jQuery选择器的说法错误的是 A: 使用:only-child选择器只能获取一个子元素 B: first-child与:first选择器都能用来获取ul列表下的li元素 C: prev~siblings选择器与siblings()方法的使用效果一致 D: parent>child选择器与children()方法的使用效果一致

    • 4

      下面过滤选择器中,()选择器的返回值是单个元素。 A: :first-child B: :last-child C: :eq(0) D: :only-child