+ 2
Can we use full hand property in place of short hand property of CSS in JS??
Like we are using: x.style.background="#000"; So can we use this, x.style.background-color="#000";
1 Odpowiedź
+ 3
Yes, but you should use backgroundColor instead of background-color:
x.style.backgroundColor ="#000#"
Read thi second lesson(Especially the note) :
https://www.sololearn.com/learn/JavaScript/2754/