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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top