很多网站都通过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) | 阅读(232087)
kathy23 Email
2023-11-13 12:05
I am thrilled to have discovered this helpful website. It provides me with a great deal of interesting information about everything, notably the content of the preceding article. quordle today
SEO Email
2023-11-16 05:51
Nice publish. I changed into checking continuously this weblog and I`m inspired! Extremely beneficial data eparticularly the ultimate component I take care of such statistics a lot. I changed into looking for this positive data for an extended time. Thank you and proper luck.  สปินฟรี Coin Master
seo Email
2023-12-22 00:28
Friend, this internet web website online is probably fabolous, i much like it.  รับซื้อกระเป๋าแบรนด์
seo Email
2024-2-18 04:42
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks!thanks for this usefull article, waiting for this article like this again.I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!  شيشة الكترونية
Hibbah Email
2024-3-3 13:13
If you want to buy the best rated eco friendly paper towels follow the link. These are reusable paper towels and the reviews on these bamboo paper towels are amazing. Go eco friendly and buy bamboo towels today at the website in the link.  paper towels
aaaa Email
2024-3-8 15:11
Your generosity in sharing this information is commendable. Thank you!  the uncensored hidden wiki
Hibbah Email
2024-4-26 17:41
SLKOR's product lines include diodes, transistors, power devices, and power management chips. We have also launched new products such as Hall sensors, ADCs, and BMS. We have accumulated years of technology on dedicated MCUs and interface chips.   Optocoupler
PTI Email
2024-4-26 21:52
Short and sweet is sometimes the best approach! Excited to read your take on the topic.  best taxi app
Hibah Email
2024-4-28 14:06
Absolutely, let's keep supporting each other's creative endeavors!  LEAKS FORUM
skribbl io Email Homepage
2024-5-21 18:54
This is such a great post! It’s the little things in life that mean the most and make up the larger moments in our lives! Game skribblio for everyoneskribblio
Hibbah Email
2024-8-23 02:36
I as of late went over your blog and have been perusing along. I figured I would leave my most memorable remark. I don't have any idea what to say aside from that I have delighted in perusing. Gifting ideas
MNJUA Email
2024-8-31 19:14
You make them interest focuses in this article. I could never anytime have examined any of these on the off chance that I didn't run over this. Grateful!.  Quantum Rox official site
NAKD Email
2024-9-1 15:41
This sort of message persistently stirring and I like to scrutinize quality substance, so delighted to find extraordinary spot to various here in the post, the creating is basically great, appreciation for the post. 8@BT Showflat
grade Email Homepage
2024-11-11 11:53
grade calculator is an amazing
分页: 17/17 第一页 上页 12 13 14 15 16 17 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]