- 4
dom
Fill in the blanks to change the background color of all span elements of the page. var s = document. getElementsByTagName(" colo "); (var x=0; x<s.length;x++) { s[ ].style.backgroundColor = "#33EA73"; }
4 ответов
+ 5
var s = document.getElementsByTagName("span");
for (var x=0; x<s.length; x++) {
s[x].style.backgroundColor = "#33EA73";
}
0
good
0
Cool
0
span
for
x