Changing a CSS rule-set from Javascript

前端 未结 8 1035
甜味超标
甜味超标 2020-11-22 04:54

Is it possible to make changes to a CSS rule-set dynamically (i.e. some JS which would change a CSS rule-set when the user clicks a widget)

This particular CSS rule-

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 05:55

    give your style tag an id, like