Chrome开发者工具用户代理覆盖模拟其他浏览器的效果如何? [英] How effective is the Chrome developer tools user-agent override at emulating other browsers?

查看:317
本文介绍了Chrome开发者工具用户代理覆盖模拟其他浏览器的效果如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome开发人员工具具有将用户代理更改为欺骗服务器的功能,使开发人员能够测试其他设备和浏览器的应用程序,而不必在桌面终端上离开Chrome浏览器的舒适。我假设Chrome模拟这些其他浏览器,而不是虚拟。关于JavaScript,CSS和其他技术浏览器差异,Chrome如何符合标准?例如,有没有人做了一个全面的测试,以确定Internet Explorer 7的Chrome仿真和实际的Internet Explorer 7是否呈现相同的页面,像素像素?

The Chrome developer tools have a feature to change the user-agent to spoof servers enabling developers to test applications for other devices and browsers without having to leave the comfort of the Chrome browser on a desktop terminal. I assume that Chrome emulates these other browsers rather than them virtually. How standards compliant is Chrome with regard to JavaScript, CSS, and other technical browser differences? For instance, has anyone done a comprehensive test to determine if the Chrome emulation of Internet Explorer 7 and the actual Internet Explorer 7 render identical pages, pixel for pixel?

推荐答案

当用户代理程序字符串更改时,Chrome 尝试全部模拟其他浏览器。

要验证断言,只需使用Internet Explorer的特定功能,如条件编译,条件注释,ActiveX,VB脚本,...在Chrome中没有这些功能。

Chrome does not attempt to emulate other browsers at all when the user agent string is changed.
To verify this assertion, just use Internet Explorer-specific features, such as conditional compilation, conditional comments, ActiveX, VB Script, ... None of these function in Chrome.

想要让Chrome呈现Internet Explorer等网页,请安装 IE标签Chrome扩展程序。但是需要现有的Internet Explorer安装,这意味着不支持非Windows操作系统,如Linux和Mac。

If you want to get Chrome to render pages like Internet Explorer, install the IE Tab Chrome extension. An existing installation of Internet Explorer is required though, which implies that non-Windows operating systems such as Linux and Mac are not supported.

这篇关于Chrome开发者工具用户代理覆盖模拟其他浏览器的效果如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆