Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top