单项选择题
如果在HTML页面中包含如下图片标签,则在下划线处添加()代码能够实现隐藏该图片的功能。
<img id=”pic” src=”Sunset.jpg” width=”400”height=”300” _____ >
A.style=”display:visible”;
B.style=”display:disvisible”;
C.style=”display:block”;
D.style=”display:none”;
点击查看答案
相关考题
-
单项选择题
(function(){ var foo; console.log(typeof foo); function foo(){} foo = "foo"; })();打印结果是()
A.function
B.undefined
C.string
D.object -
单项选择题
function test(){ var a=20; alert(a); setTimeout(function(){ a=30; alert(a); },2000); alert(10); } test();以上代码的弹出顺序是( )
A.20,10,30
B.20,20,10
C.20,10,20
D.20,30,10 -
单项选择题
function Animal(){}在Animal的原型上扩展一个type的属性,值为’动物’,扩展一个say的方法,用于打印type属性,正确的实现方法是()
A.Animal.prototype.type=”动物”;Animal.prototype.say=function(){console.log(this.type)});
B.Animal={type:”动物”,say:function(){console.log(this.type)}
C.Animal.prototype({type:”动物”,say:function(){console.log(this.type)})
D.以上说法都不正确
