0
Change fontSize
Why the code doesn't work (in html <p id="text" >text text text<p> In js Add (addEventListener ) text.style.fontSize += 2 + 'px')
4 Respuestas
+ 3
Can you please link your complete code? Put it on sololearn playground and link it here)
From the snippets I cannot see what's going on.
+ 2
Well you can try to change font in CSS.
+ 1
We can use "getComputedStyle()"
Next convert value "parseInt() " and get the value
+ 1
Thanks everyone)