【单选题】【消耗次数:1】
在javascript中,下列选项中可以获取滚动条距窗口顶端滚动的距离的是
document.documentElement.scrollTop
document.documentElement.scroll
document.style.scrollTop
document.style.scroll
参考答案:
复制
纠错
相关题目
【单选题】 在javascript中,下列选项中可以获取滚动条距窗口顶端滚动的距离的是(选择一项)
①  document.documentElement.scrollTop
②  document.documentElement.scroll
③  document.style.scrollTop
④  document.style.scroll
【单选题】 下面选项中,( )能够获取滚动条距离页面顶端的距离。
①  onscroll
②  scrollLeft
③  scrollTop
④  top
【单选题】 下面选项中,( )能够获取滚动条距离页面顶端的距离。(选择一项)
①  onscroll
②  scrollLeft
③  scrollTop
④  top
【单选题】 在javaScript中,运行下列代码后的结果是 var d=1; document.write(typcof(d));
①  char
②  number
③  string
④  undefined
【单选题】 下列代码分析正确的是( )。 1 function createNode () { 2 var pl=document. createElement ( p ) ; 3 var txt=document. createTextNode ( Hello ! ) ; 4 pl.appendChild (txt) ; 5 document.appendChild (p) ; 6 }
①  代码第2行是创建一个p元素标记
②  代码第4行是为文档添加文本节点
③  p是文本节点的子节点
④  函数的功能是创建新的文本节点
【单选题】 下列代码分析正确的是( )。 1 function createNode () { 2var pl=document. createElement ( p ) ; 3 var txt=document. createTextNode ( Hello ! ) ; 4 pl.appendChild (txt) ; 5 document.appendChild (p) ; 6 }
①  代码第2行是创建一个元素标记
②  代码第4行是为文档添加文本节点
③  是文本节点的子节点
④  函数的功能是创建新的文本节点
【单选题】 下面( )不是document对象的方法。
①  getElementsByTagName( )
②  getElementById( )
③  write( )
④  reload( )
【单选题】 下面( )不是document对象的方法。
①  getElementsByName( )
②  getElementById( )
③  write( )
④  reload( )
【单选题】 在JavaScript中,运行下面代码后的返回值是( )。 var flag = true; document.write(typeof(flag));
①  undefined
②  null
③  number
④  boolean
【判断题】 在Windows 中,当改变窗口的大小,使窗口中的内容显示不下时,窗口中会自动出现垂直滚动条或水平滚动条。
①  正确
②  错误
随机题目
【简答题】 关系模型的三类完整性约束是实体完整性、参照完整性和[填空1]。
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[chore; talent; crowded; earnings; finance; festive; memorable; sacrifice; smash; reproduction]6. A crowd of youths started[填空1]windows.
【简答题】 Directions: Fill in the blanks with the words given below. Change the form if necessary.(pros and cons; allocation; update; complexity; infancy; initially; minimal;strategically; grab; digest)9. The report concluded that the impact would be[填空1]because of the rivers continuous flow.
【简答题】 Direction: Fill in the blanks with the phrases given below. Change the form if necessary.[have access to; go off; desperate for; put up with; always the case; give advice; concentrate on; arrive at; make an effort; come in handy]8. The prisoner[填空1]to escape, but he couldnt climb up the prison wall.
【简答题】 为什么说新民主主义社会是一个过渡性社会?
【简答题】 对农业的社会主义改造,,经历了[填空]、初级社和高级社三个阶段。
【简答题】 1894年,孙中山在[填空]创立兴中会。
【简答题】 [填空]是中国革命的首要问题。
【简答题】 1856年9月,太平天国内部自相残杀的事件是[填空]。
【简答题】 中国旧式农民战争的最高峰是[填空]起义 。