show/hide div based on browser size using ONLY css?

前端 未结 2 378
我在风中等你
我在风中等你 2020-12-13 14:49

I am a trying to get some divs to show/hide based on browser size, using only css media queries... but nothing seems to be working... please help if you can and let me know

相关标签:
2条回答
  • 2020-12-13 15:33

    class name can't be a number, and cannot start with a number in CSS. Here is an example where I changed the class name and it's working good

    http://jsfiddle.net/RtTsy/

    0 讨论(0)
  • 2020-12-13 15:37

    class name can't start with the digit. change it to e.g. x700,x490,x290 and it should work

    0 讨论(0)
提交回复
热议问题