User Tools

Site Tools


jet:removing_and_applying_css_classes

setting inline styles

myElement.style.<propriété> = “<valeur>”;

Attention : par exemple font-weight en CSS sera FontWeight en JS ! hyphen → camelCase

setting the class

myElement.className = “<nom de classe>”; myElement.className = “”; / plus de classes ! Clear !

jet/removing_and_applying_css_classes.txt · Last modified: 2016/01/24 21:56 by leo