题库 软件开发 题目列表 页面有一个按钮<button>按钮,通过原生的js 设...
单选题

页面有一个按钮<button>按钮,通过原生的js 设置背景色为红色?</button>

A.

document.getElementById('button1').style.backgroundcolor="red";

B.

document.getElementById('button1').style.backgroundColor="red";

C.

document.getElementByIds('button1')[0].style.backgroundcolor="red";

D.

document.getElementByIds('button1')[0].style.backgroundColor="red";

题目信息
校招真题
-
正确率
0
评论
17
点击