首页 试题广场 > 试题详情
单选题

【2017Web前端面试题】页面有一个按钮button id为 button1,通过原生的js 设置背景色为红色?

  • A.document.getElementById('button1').style.backgroundColor="red";
  • B.document.getElementById('button1').style.backgroundcolor="red";
  • C.document.getElementById('button1').style.backGroundColor="red";
  • D.document.getElementById('button1').style.bgcolor="red";
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 10个回答
贡献榜
相关试题
关闭
关闭

了解
畅学卡

手机端
学习