Js creates style tags and adds css styles. Only some styles are valid.

I am making a module of the rotation graph. I use js to create a style tag and add the css style of each structure of the rotation, and then the style of the picture takes effect, but the style of the controller dot is invalid, and adding Important is useless. Writing the code to the linked css file alone can take effect

clipboard.png

clipboard.png

Mar.19,2021

numbers and percent signs should be affixed with no spaces. Correct: 100% , error: 100%


although your problem has been solved upstairs, I would also like to add that your way of writing is incorrect. You can declare a class .c first, and then add or remove class c

to the tag via js.
Menu