题海让大学四年没有难题
白天模式登陆

题目详情

单选题 页面有一个按钮button id为 button1,通过原生的js 设置背景色为红色? ( )

A. document.getElementById('button1').backgroundcolor="red"

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

C. document.getElementById('button1').style.color="red"

D. document.getElementById('button1').style.bgcolor="red"

Web系统与技术课程封面

学科:Web系统与技术

时间:2023-12-29 03:11:17

Copyright © 2022 津ICP备2021001502号