質問

I have a site which uses a different menu for mobile devices than on the Desktop version using media queries. If I resize a desktop browser window to a mobile width and click the mobile navigation dropdown button and then resize the window back to desktop size, the mobile menu remains visible instead of changing back to display:none. Unfortunately this site is still in staging so I cannot show you a live example, but I was hoping someone could point me in the right direction of getting that DIV to become hidden again once the window is resized back to full screen.

Also, I realize that the chances of this scenario playing out in the real world are slim, but the client would like for it to be addressed anyway.

Thanks!

役に立ちましたか?

解決

I figured out that it was javascript that was showing the DIV in the first place, not a media query, so I just added display:none to the div for the Desktop media query and the issue has gone away. Thanks!

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top