浏览器模拟手机
来源:互联网 发布:微信朋友圈的网络陷阱 编辑:程序博客网 时间:2024/05/01 03:25
Firefox浏览器
1、安装三个Firefox插件:wmlbrowser、XHTML Mobile Profile、User Agent Switcher 。
2、设置 User Agent Switcher ,点击菜单 工具 → Default User Agent → User Agent Switcher → Options → New ,填写Description 和 User Agent 。
几个常见手机的User Agent如下:
iPhone3:Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
Android: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
诺基亚N95:Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95/30.0.015; Profile MIDP-2.0 Configuration/CLDC-1.1) AppleWebKit/413 (KHTML, like Gecko) Safari/413
诺基亚N97: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
Chrome浏览器
在Windows的【开始】->【运行】中输入以下命令来启动谷歌浏览器,即可模拟相应手机的浏览器访问移动设备应用网页,执行命令前要关掉Chrome浏览器:
模拟谷歌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:chrome.exe --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: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"
很多网站都通过User-Agent来判断浏览器类型,如果是3G手机,显示手机页面内容,如果是普通浏览器,显示普通网页内容。
谷歌Chrome浏览器,可以很方便地用来当3G手机模拟器。在Windows的【开始】-->【运行】中输入以下命令,启动谷歌浏览器,即可模拟相应手机的浏览器去访问3G手机网页:
谷歌Android:
苹果iPhone 4:
苹果iPad 2:
诺基亚N97:
试一试,分别用Android、iPhone、诺基亚访问http://www.163.com/、http://blog.s135.com/、http://www.google.com.hk/、http://3g.qq.com、http://t.sina.cn这些3G手机网页,看看有什么不同。
更多款手机的User-Agent:http://www.zytrax.com/tech/web/mobile_ids.html
- chrome模拟手机浏览器
- 浏览器模拟手机
- Chrome浏览器模拟手机
- chrome浏览器模拟手机上网
- 用chrome模拟手机浏览器
- chrom浏览器模拟手机访问
- PC浏览器模拟手机浏览器访问网站
- 用电脑浏览器模拟手机浏览器
- 各浏览器模拟手机浏览器的方法
- 用谷歌浏览器来模拟手机浏览器
- 电脑模拟手机浏览器打开手机网页
- google chrome浏览器 模拟手机、浏览器访问手机网页
- IOS手机模拟简单的浏览器
- 用Firefox和Chrome模拟手机浏览器
- 电脑chrome浏览器模拟手机环境
- chrome浏览器怎么模拟手机访问网页
- python+chrome+Selenium模拟手机浏览器
- 如何利用谷歌浏览器来模拟手机浏览器
- 解决PHP调存储过程问题
- Linux tcpdump命令详解
- 安装部署CloudStack 4.0企业私有云平台
- Hadoop集群的配置调优
- ListView动态加载数据模板(使用代码布局)
- 浏览器模拟手机
- 第九章 – 图像局部与分割 – 视频中是直线像素采样(cvInitLineIterator )
- Linux面试题目
- Windows phone应用开发[15]-辅助工具
- [Matlab]基础教程学习笔记(五):二维底层绘图修饰
- 中国特色害死了股市
- ABAP程序中的事件
- QT学习笔记(四) QtDesigner 实现简单的快捷键操作界面
- CSS选择器的顺序