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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -