單項選擇題()語句可以為一個demo元素同時添加color及background這兩個行內(nèi)樣式

A.demo.style.cssText="color:red;background:blue;"
B.demo.style="color:red;background:blue;"
C.demo.style.text="color:red;background:blue;"
D.以上說法都不正確


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題

以下代碼輸出結(jié)果為()
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]

2.單項選擇題設置<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;}