相关考题
-
单项选择题
查找段落的父元素中每个类名为selected的父元素,写法正确的是()。
A.$("p").parent()
B.$("p").parent(".selected")
C.$("p").parent("selected")
D.$("p").parentAll(".selected") -
单项选择题
通过()方法获得集合中每个匹配元素的祖先元素。
A.closest()
B.parent()
C.parentAll()
D.parents() -
单项选择题
火狐浏览器获取非style中的元素样式可以用()属性。
A.getsomputedstyle()
B.getComputedStyle()
C.currentstyle
D.currentStyle
