如何使用桌面浏览器来访问手机网页
很多网站都通过User-Agent来判断浏览器类型,如果是3G手机,显示手机页面内容,如果是普通浏览器,显示普通网页内容。)User Agent (以下简称 UA)是一个浏览器的身份标识,比如我正在用的 Chromium UA 就是Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
各个参数的含义如下表:
Chrome 8.0.552.224MozillaMozillaProductToken. Claims to be a Mozilla based user agent, which is only true for Gecko browsers like Firefox and Netscape. For all other user agents it means 'Mozilla-compatible'. In modern browsers, this is only used for historical reasons. It has no real meaning anymore5.0Mozilla VersionWindowsPlatformUSecurity values:
[*]N for no security
[*]U for strong security
[*]I for weak security
Windows NT 6.1Operating System:
http://www.useragentstring.com/img/os/windows7.png Windows 7en-USLanguage Tag, indicates the language for which the client had been localized (e.g. menus and buttons in the user interface)
en-US = http://www.useragentstring.com/img/flag/en-us.pngEnglish - United StatesAppleWebKitThe Web Kit provides a set of core classes to display web content in windows534.10Web Kit buildKHTMLKHTMLlike Geckolike GeckoChromeName :
http://www.useragentstring.com/img//browser/chrome.pngChrome8.0.552.224VersionSafariBased on Safari534.10Safari buildDescription:Free open-source web browser developed by Google. Chromium is the name of the open source project behind Google Chrome, released under the BSD license.
All Chrome user agent strings
谷歌Chrome浏览器,可以很方便地用来当3G手机模拟器。在Windows的【开始】-->【运行】中输入以下命令,启动谷歌浏览器,即可模拟相应手机的浏览器去访问3G手机网页:
谷歌Android:
<div style="margin-top: 5px; margin-right: 5px; margin-left: 5px; margin-bottom: 0px; background-color: #ffffff; font-family: Tahoma, Arial; padding: 3px; border: 1px dashed #00a0c6;">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"
页:
[1]