Question

I'm working on a website that has a mobile version based on jquery. I want the user to be able to go to the orginal version from the mobile version, but when i use a link to the orginal version the div tags are invisible until i refresh the page. How can i fix this?

Était-ce utile?

La solution

You should use CSS media queries to hide content at smaller screens. Otherwise, you need javascript resize event listeners to check if the screen size changes and then show your content. That's more work and performance drain than you want.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top