I am creating a mobile website using HTML5 and CSS. How do I adjust to different devices? Either based on the device type(android/ios/windows/bb using navigator.userAgent) or based on screen width (using media queries).
Which practice is best and will be efficient?
I need to run my website on devices as follows:
Which is the best method?
Current best practice is a strategy called responsive design. It adjusts the website to match the width of your browser.
See Links
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.