很多网站都通过User-Agent来判断浏览器类型,如果是3G手机,显示手机页面内容,如果是普通浏览器,显示普通网页内容。

  谷歌Chrome浏览器,可以很方便地用来当3G手机模拟器。在Windows的【开始】-->【运行】中输入以下命令,启动谷歌浏览器,即可模拟相应手机的浏览器去访问3G手机网页:

  谷歌Android:
chrome.exe --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 4:
chrome.exe --user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405"


  苹果iPad 2:
chrome.exe --user-agent="Mozilla/5.0 (iPad; CPU OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405"


  诺基亚N97:
chrome.exe --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"


  试一试,分别用Android、iPhone、诺基亚访问http://www.163.com/http://blog.zyan.cc/http://www.google.com.hk/http://3g.qq.comhttp://t.sina.cn这些3G手机网页,看看有什么不同。

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

  10月11日备注:如果想切换回普通浏览器模式,关掉所有Chrome浏览器,重开即可。如果不想关闭浏览器,切回普通浏览器模式,则访问:
chrome.exe --user-agent="Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7"


Tags: , ,



技术大类 » Windows相关 | 评论(336) | 引用(0) | 阅读(232089)
Coach Email Homepage
2012-11-3 14:44
"The Coach Outletengines that will likely power the J-31 we do know a bit mor.Coach Outlet  Those engines were actually revealed at the Zhuhai showCoach Outlet in 2008," Fisher said referring to an annual China air show. He beCoach Outletlieves the new J-31 engine is undergoing preliminary
cirst
2013-1-7 17:17
是否和手机浏览器效果差不多
斯诺克网站 Email Homepage
2013-1-8 17:54
哈哈哈·这个不错。。。
斯雯倪嘉 Email
2013-4-5 21:06
感觉还是安装个扩展比较方便给
Jooan
2013-4-28 16:06
很好的方法,感谢分享~
磨延城 Email Homepage
2013-10-21 20:34
磨途歌谢谢分享
a
2014-6-3 13:33
怎么不行 显示不是内部或外部命令
Steven Email Homepage
2015-3-19 02:28
Thank you for this post Weight Loss Tea
Steven Email Homepage
2015-3-19 02:29
Thank you for this post Weight Loss Tea
ssfdsdf Email Homepage
2015-3-20 05:36
小箸
2017-2-3 21:16
为什么提醒我没有找到chrome.exe?
An Email
2019-1-5 15:17
great article, I was very impressed about it, wish you would have stayed next sharevex 3
Linda Rose Email
2019-1-9 17:54
Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for megun mayhem 2
hotmail login Email Homepage
2019-10-4 10:52
I am so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that’s at the other blogs.hotmail loginhttp://hotmaillonline.com/hotmail-login/
nbc.com/activate
2020-2-18 14:37
By activating NBC sports activate, which can be accessible through nbc.com/activate a person as if you can watch all popular sporting events ranging from soccer to soccer and basketball to football. You can watch their leagues like NFL, NHL, NBA, MLB, NASCAR and much more!https://www.nbccomactivatetv.com/
lifestyle Email
2020-2-20 11:24
LALIT Email
2020-6-15 18:53
clownfish voice changer not workinghttps://clownfishvoicechanger.xyz/Discord Voice Changer for pcDiscord Voice Changer for pc
分页: 4/17 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]