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

【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个回答
贡献榜
相关试题
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部