gpt4 book ai didi

firefox - 是否可以有选择地关闭 Firefox/Chrome 中的 CSS 或 Javascript 功能进行测试?

转载 作者:行者123 更新时间:2023-12-03 14:45:31 26 4
gpt4 key购买 nike

IE 具有方便的调试功能,可让您模拟旧版本的 IE (7-10)。是否有与 Firefox/Chrome 插件类似的功能,例如,可以让您将 Chrome 转回仅具有几个版本前的功能?或者在 Firefox 中测试没有最新 Firefox 版本的 CSS 功能的站点?或者通过删除边框半径、阴影和高级 CSS 效果,而不实际更改浏览器中加载的样式表,粗略地显示站点在 IE7 中的样子?

似乎可以有效地仅在一页上删除 JS 功能 - 例如,window.ArrayBuffer = undefined会导致缺少 ArrayBuffer 功能,就像在旧浏览器中会发生的那样 - 但是是否有任何插件或 api 来编写插件,以超越“用户代理切换”并删除用于测试的功能?

最佳答案

Is there a similar feature as an addon for Firefox/Chrome that lets you, for example, turn back Chrome to only have the features it had a few versions ago?


使用名为 profiles 的功能并行安装和运行多个版本的浏览器:
  • Mozillazine: Using Multiple Profiles
  • Chromium: Creating and Using Profiles
  • Opera: How to make multiple profiles?

  • 这些比 Microsoft 解决方案更具前瞻性:

    Note You may be able to use legacy document modes to emulate the behavior of earlier versions. Should you choose to do this, be aware that this is a temporary solution at best. Starting with Internet Explorer 11 Preview, document modes are consider deprecated and may not be supported in any future versions of the browser. For best results, you should update your sites and apps to use features and techniques supported by industry standards and multiple browsers.

    Note Starting with IE11, document modes are considered deprecated and should no longer be used. Webpages that require legacy document modes to display properly should be rewritten to use features defined by modern standards. To learn more, see Compatibility changes in IE11.


    但有警告:

    Chrome profiles are not backwards compatible, so storing the user profile on a network drive and using it with different versions of Chrome can cause crashes and data loss.


    引用文献
  • Compatibility changes in IE11
  • IE10 Compatibility Changes
  • Specifying legacy document modes
  • When to use Legacy Document Modes
  • Understanding the need for document compatibility modes
  • HTML5 Parsing in IE10
  • IE 10 Compat Inspector
  • IE 10, HTML5 and jQuery 2.x - JavaScript runtime error: 'JSON' is undefined
  • Interoperable HTML Parsing in IE9
  • Compatibility View and 'Smart Defaults'
  • Chromium: Supported Directory Variables
  • 关于firefox - 是否可以有选择地关闭 Firefox/Chrome 中的 CSS 或 Javascript 功能进行测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25459248/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com