Window Resizer + Chrome来测试手机页面

1.安装chrome和chrome插件 window resizer
window resizer地址:
https://chrome.google.com/extensions/detail/kkelicaakdanhinjdeammmilcgefonfh?hl=zh-tw

2.启动chrome:

谷歌Android:
/usr/bin/chromium-browser --user-agent="Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"



苹果iPhone:
/usr/bin/chromium-browser --user-agent="Mozilla/5.0 (iPad; U; CPU OS 3_2_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B500 Safari/531.21.10"



诺基亚N97:
/usr/bin/chromium-browser --user-agent="Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/20.0.019; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.18124"


更多款手机的User-Agent:http://www.zytrax.com/tech/web/mobile_ids.html

ps:windows下加将/usr/bin/chromium-browser 换成chrome.exe

你可能感兴趣的:(android,chrome,mobile,Safari,Windows Mobile)