当前位置:百科知识 > 知到临床医学答案

问题描述:

[单选] 页面有一个按钮<button>按钮,通过原生的js 设置背景色为红色?
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";
参考答案:查看
答案解析:
☆收藏

随机题目