《JavaScript》----backgroundcolor属性

来源:互联网 发布:剑灵召唤师卡刀软件 编辑:程序博客网 时间:2024/06/06 04:55

注意!function函数中的backgroundcolor属性设置语句为:.style.backgroundColor="green";


而html中background属性设置语句为:style="background-color:green;

注意大小写格式不同!!!

0 0
原创粉丝点击