+ 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";

30th Jun 2019, 1:31 AM
ApidBoy
ApidBoy - avatar
1 Respuesta
+ 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/
30th Jun 2019, 4:25 AM
ΛM!N
ΛM!N - avatar