在JS中元素样式属性名称如果有两个或多个单词组成则每个单词的首字母要大写,但第一个单词(即最左边第一个字母)的首字母要小写, 字符区分大小写;
obj.style.backgroundImage="url('welcom.jpg')";
document.body.removeAttribute("className","bg"); document.body.style.backgroundColor = "red";
在JS中元素样式属性名称如果有两个或多个单词组成则每个单词的首字母要大写,但第一个单词(即最左边第一个字母)的首字母要小写, 字符区分大小写;
obj.style.backgroundImage="url('welcom.jpg')";
document.body.removeAttribute("className","bg"); document.body.style.backgroundColor = "red";