Mobile web development-General guide
2013-06-04 18:23
323 查看
Development with google chrome
Before you test your page in real device, you can test in chrome since they're all webkit based, it covers 80+% compatibility issues, besides it ships a handy mobile emulation tool to simulate UA/resolution/touch eventshttps://developers.google.com/chrome-developer-tools/docs/mobile-emulation
Use
Viewport meta tag
?pixels and presented it zoomed out.
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
Use fluid
layout
Don't give a fixed width for layout because you can't predict screenwidth.
use fluid layout instead.
http://www.onextrapixel.com/examples/responsive-design/example1_fluid.php
Use
media query to give different layouts for phone/tablet and orientation
Phone device usually has single column layout, but tablet may have more roomfor extra column,
Here's a nice tutorial for media queries. http://www.onextrapixel.com/2012/04/23/responsive-web-design-layouts-and-media-queries
Don't use
scrollbar in DIV
which is not supported well in mobile.if you really need it, use a scroll
plugin like iscroll plugin http://cubiq.org/iscroll-4 or
nicescroll
http://areaaperta.com/nicescroll/
Keep the scrollable content simple otherwise the performance would be
bad in android.
Don't use
iframe
Slow and buggy in androidCSS3 can
make your life easier
If you need gradient or rounded corner, you can safely use css3 withoutworrying about IE compatibility
here's nice tools to generate css for round
corner/gradient
http://www.cssportal.com/css3-rounded-corner/
http://www.cssportal.com/css3-rounded-corner/http://www.colorzilla.com/gradient-editor/
Encode
your images in Base64 to save http roundtrips
base64 are supported by ios/android.https://en.wikipedia.org/wiki/Base64
Leverage
flex box for flexible layout
here's a nice tutorialhttp://www.html5rocks.com/en/tutorials/flexbox/quick
http://optimo.com/ http://www.mynameischris.co.uk/
http://www.youthedesigner.com/ http://bradleyhaynes.com/ http://www.carlobarberis.com/ http://www.rook.is/ http://curtsspecialrecipe.com/ http://lifeaccordingtosam.com/#/home/ http://www.cedricvella.com/
相关文章推荐
- Website, Web software and Mobile solutions Development Service Provider in China
- Mobile Web Development
- Javascript & CSS gotchas in Mobile Web App Development
- Mobile Web Development学习小结
- Web development for Mobile
- Mobile Web Development
- Web development for Mobile
- Web development for Mobile
- Siebel Config: Enabling CTI Toolbar in Mobile Web Client
- Learning JQuery: Better Interaction Design and Web Development with Simple Javascript Techniques
- the world's largest Open Source software development web site
- CherryPy Essentials: Rapid Python Web Application Development
- Android Web development Note
- The Definitive Guide to Django: Web Development Done Right
- Full Stack Web Development Angularjs(一)学习笔记
- udacity-web development-homework(unit2-rot13)
- Meta标签中的apple-mobile-web-app-status-bar-style属性及含义
- Visual Web Development 2005开发ASP.NET使用小技巧
- 《Agile web Development With Rails (4th Edition·第四版)》翻译二
- "Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.