how to change a Css Style Class definition with Javascript? -
this question has answer here:
is possible override css classes javascript ? exemple :
adding background .iframe style classe.
who troll
who down voted answer? please provide reason
changing style property
var iframe = document.queryselector('.iframe'); iframe.style['marginbottom'] = "200px";
changing class property
iframe['classname'] = "myclass";
Comments
Post a Comment