• 2022-06-11
    下面哪个 jQuery 方法返回带有第一个匹配元素的定位父元素的 jQuery 集合?( )
    A: offsetParent( selector )
    B: offset( selector)
    C: parent( selector )
    D: 以上都不是
  • A

    内容

    • 0

      下列过滤器可以匹配含有选择器所匹配的元素的是 A: contain(text) B: :empty C: :has(selector) D: :parent

    • 1

      伪元素用于向不是selector元素的元素添加样式

    • 2

      下面jQuery方法中,能够获取到匹配元素的父元素的方法的是 A: children() B: siblings() C: parent() D: next()

    • 3

      下面CSS语法结构正确的选项有( )。 A: selector{property:value} B: selector{property:value;property:value} C: selector,selector{property:value} D: selector,selector{property:value;property:value}

    • 4

      下面选项中,返回作为该元素带有定位元素的父级元素(如果父级都没有定位则返回body)的是()。 A: offsetHeight B: offsetLeft C: offsetWidth D: offsetParent