سؤال

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