Can I change the media query using javascript / jQuery?

前端 未结 7 960
逝去的感伤
逝去的感伤 2020-12-10 15:50

I have a style.css with a media query. In my javascript-file, I have a value for the desired mobile-width stored in a variable.

By changing the variable, I want to c

7条回答
  •  暖寄归人
    2020-12-10 16:17

    You also have to know that some of that approaches may not work correctly in Safari. Can not remember the problem so that you can find more information if you need it.

提交回复
热议问题