简体   繁体   中英

HTML5 and CSS based mobile website

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:

  • BB 6.0 and above,
  • IOS 4.0 and above,
  • Windows 8
  • Android 4.0 and above.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM