单项选择题
()语句可以为一个demo元素同时添加color及background这两个行内样式
A.demo.style.cssText="color:red;background:blue;"
B.demo.style="color:red;background:blue;"
C.demo.style.text="color:red;background:blue;"
D.以上说法都不正确
点击查看答案
相关考题
-
单项选择题
以下代码输出结果为() var num = [1,2,3,4,5];console.log(num.slice(2))
A.[1,2,3,4,5]
B.[2,3,4,5]
C.3
D.[3,4,5] -
单项选择题
设置<div class="model" ></div>在浏览器上下左右居中,以下写法正确的是()
A..model{position:absolute;top:50%;left:50%;margin-left:-50px;margin-top:-100px;}
B..model{position:absolute;top:50%;left:50%;margin-left:50px;margin-top:-100px;}
C..model{position:absolute;top:50%;left:50%;margin-left:-50px;margin-top:100px;}
D..model{position:absolute;top:50%;left:50%;margin-left:50px;margin-top:100px;} -
单项选择题
function A(){};var a=new A();以下为真的是()
A.A
B.B
C.C
D.D
