Change CSS style from javascript?

前端 未结 2 1847
谎友^
谎友^ 2021-01-24 23:40

I would prefer not to use jquery just for simplicity. I have three websites which one page cycles through. I want the webpages to be scaled each by a different scalar value. I t

2条回答
  •  青春惊慌失措
    2021-01-25 00:31

    Your switch statement is failing because it lacks a break statement at the end of each case. Without break, the proper case and any cases below it will execute. That is why "only the third one works"

提交回复
热议问题