Hide or remove a div class at mobile viewport?
问题 First and foremost, I am very aware of CSS media queries. My problem is this: When you have div classes stacked in one div; Example: <div class="class1 class2"></div> And you want to remove "class2" @media (max-width: 768px) Creating an output of: <div class="class1"></div> ...once the 768px threshold has been reached. So far I have come up with nothing other than this non-functional code: <script> jQuery(document).resize(function () { var screen = $(window) if (screen.width < 768) { $("