Use the JS matchMedia() Method. You can simply use the JavaScript window.matchMedia() method to detect a mobile device based on the CSS media query.
確定! 回上一頁