this.style.color中的this代表什么对象?Insert title herebody {color:black}function shijian(){var li = document.getElementsByTagName("li");//返回的是一个数组for(var i=0; i
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/03 21:42:48
this.style.color中的this代表什么对象?
Insert title here
body {color:black}
function shijian(){
var li = document.getElementsByTagName("li");//返回的是一个数组
for(var i=0; i
this 是只本身.
这里应该指的是 整个html 文件你可以这么理解.
因为是主体在运行function
而这个主体有document
然后内部运行许多个function
问题补充:那么可以把this.style.color替换为:li[i].style.color吗?
不行的
你可以把
var li = document.getElementsByTagName("li");
换成
var li = this.document.getElementsByTagName("li");
这样理解了没
this.style.color 修改的是这里的颜色:
body {color:black}
blue color style
this.style.color中的this代表什么对象?Insert title herebody {color:black}function shijian(){var li = document.getElementsByTagName(li);//返回的是一个数组for(var i=0; i
this.style.behavior是什么意思
Minimum Order:50pcs/style/color Minimum Order:50pcs/style/color
three中的th、think中的th、this中的th分别发什么音?争取越快越好.我的意思是英标
please color this key
与why中的wh、who中的wh、thin中的th、this中的th读音相同的单词
this.style.behavior='ur
But this color is very
The Elements of Style:50th Anniversary Edition是什么书
英语翻译l am sure this style will [ ].
I like this kind of style
aOpt[this.index].style.display=block;
Pink is ____ style this year .
帮我把Chinese style变成American styleChinese style:I`ll go there st three.I am going back my home.I like green color.Where is here.How heavy are you?How does she look like?How can I do?She is wearing blue jeans pants.Come to here.Who cooked this
style=color:+errColor+; 这是神马意思?style='color:+errColor+; font-weight:bold; display:none; font-size:9pt;'errColor是神马意思啊
style is like this 对还是This Like is Style 对
this._container.style.width = w + px; this._container.style.height = h + px;