时间:2024-10-11 21:52:50
1、新建一个html文件,命名为demo3.html,用于讲解Javascript怎么设置背景颜色。
2、使用document对象的backgroundColor属性设置背景颜色。
3、运行网页,查看最终的效果。