【单选题】【消耗次数:1】
某页面中有两个id分别为mobile和telephone的图片,下面( )能够正确地隐藏id为mobile的图片。
document.getElementsByName(mobile).style.display=none;
document.getElementById(mobile).style.display=none;
document.getElementsByTagName(mobile).style.display=none;
document.getElementsByTagName(img).style.display=none;
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 某页面中有两个id分别为mobile和telephone的图片,下面( )能够正确地隐藏id为mobile的图片。(选择一项)
①  document.getElementsByName(mobile).style.display=none
②  document.getElementById(mobile).style.display=none
③  document.getElementsByTagName(mobile).style.display=none
④  document.getElementsByTagName(img).style.display=none
【单选题】 关于以下JavaScript代码,说法正确的是( )。 var s = document.getElementsByTagName(p); for(var i = 0;i<s.length;i++) { s[i].style.display=none; }
①  隐藏了页面中所有id为p的对象
②  隐藏了页面中所有name为p的对象
③  隐藏了页面中所有标签为的对象
④  隐藏了页面中标签为的第一个对象
【单选题】 关于以下JavaScript代码,说法正确的是( )。var s = document.getElementsByTagName(pfor(var i = 0;i(s.length;i++) { s[i].style.display=none}
①  隐藏了页面中所有id为p的对象
②  隐藏了页面中所有name为p的对象
③  隐藏了页面中所有标签为(p)的对象
④  隐藏了页面中标签为(p)的第一个对象
【单选题】 下面加划线span style=text-decoration: none;字/span的注音全部span style=text-decoration: underline;/span正确的一组是( )span style=text-decoration: none;/span
①  鸟巢(cháo)憧憬(tónɡ)庇覆(bì) 笑靥(yè)
②  氤氲(yīn)浣(wǎn)纱 羁绊(jī)眸子(móu)
③  棱角(lénɡ)罅隙(xià) 胳膊(bo) 虔诚(qián)
④  细腻(nì)眼睑(liǎn)悲怆(chuànɡ) 膝盖(xī)
【单选题】 This is the _____ mobile phone I want to buy.
①  quite
②  just
③  very
④  still
【判断题】 如果在利用CSS表现XML文档时需要将某元素的内容设置为不可见,可以利用display属性,将其值设置为none就可以实现。
①  正确
②  错误
【单选题】 All the mobile phones must______ before the meeting starts.
①  be turning off
②  turn off
③  be turn off
④  be turned off
【单选题】 下列定义函数display()语法正确的是( )。
①  function display(){}
②  function: display(){}
③  function=display(){}
④  display(){}
【单选题】 下面( )不是document对象的方法。
①  getElementsByTagName( )
②  getElementById( )
③  write( )
④  reload( )
【单选题】 下面( )不是document对象的方法。
①  getElementsByName( )
②  getElementById( )
③  write( )
④  reload( )
随机题目
【单选题】 下列哪种食品中亚硝基类化合物污染最重()
①  奶类
②  蔬菜、水果
③  酒类
④  腌制肉制品
【判断题】 中国人吃面条已经有4000年左右的历史了。
①  正确
②  错误
【判断题】 饮食养生只针对老年人。
①  正确
②  错误
【判断题】 中国最古老的饮料酒是葡萄酒。
①  正确
②  错误
【判断题】 清代有食圣之誉的是著名文学家袁枚。
①  正确
②  错误
【判断题】 茶叶最初被发现是因为其药用价值。
①  正确
②  错误
【判断题】 烧酒和黄酒在酿造工艺上是一样的。
①  正确
②  错误
【判断题】 花生是明清时才从国外引进的。
①  正确
②  错误
【多选题】 下列属于绿茶的是( )。
①  铁观音
②  龙井
③  普洱
④  毛峰
【多选题】 目前很多人说的十大菜系是在原来八大菜系的基础上增加( )。
①  浙菜
②  闽菜
③  京菜
④  沪菜