文章 2022-02-16 来自:开发者社区

JS魔法堂:浏览器模式和文档模式怎么玩?

一、前言                                         从IE8开始引入了文档兼容模式的概念,作为开发人员的我们可以在开发人员工具中通过“浏览器模式”和“文档模式”(IE11开始改为“浏览器模式”改成更贴切的“用户代理字符串”)品味一番,它的出现极大地方便了苦逼的前端攻城狮们适配各版本的IE,但jser们也不能完全信任它,因为它只是提供尽可能的文档模式模...

JS魔法堂:浏览器模式和文档模式怎么玩?
文章 2022-02-16 来自:开发者社区

再谈IE的浏览器模式和文档模式

原文:再谈IE的浏览器模式和文档模式 以前在 “IE8兼容视图(IE7 mode)与独立IE7的区别”一文中曾经涉及过浏览器模式和文档模式,但二者的区别却不甚了了,现在有了新的认识,再补充一下。 1.浏览器模式与文档模式概念 在较新的IE浏览器中(如IE8, IE9, IE10),为了解决兼容性的问题,引入了浏览器模式和文档模式两个概念,浏览网页时可以通过按F12键看到这两种模式。  ....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCardInfo":{"productTitle":"无影 Agent 开发套件 AgentBay","productDescription":"无影 Agent 开发套件 AgentBay 是一款专为 AI Agent 提供的任务执行工具和平台,提供浏览器(Browser Use)、桌面(Computer Use)、代码(CodeSpace)、移动端(Mobile Use)全覆盖的安全沙箱环境,支持 SDK 和 MCP 接入,依托阿里云强大算力实现智能体的高效调度与规模化运行。","productContentLink":"https://www.aliyun.com/product/agentbay","isDisplayProductIcon":true,"productButton1":{"productButtonText":"产品详情","productButtonLink":"https://www.aliyun.com/product/agentbay"},"productButton2":{"productButtonText":"文档","productButtonLink":"https://help.aliyun.com/zh/agentbay/product-overview/"},"productButton3":{"productButtonText":"控制台","productButtonLink":"https://agentbay.console.aliyun.com/overview"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"产品发布","productPromotionInfoFirstText":"无影 AgentBay 国际站上线","productPromotionInfoFirstLink":"https://www.alibabacloud.com/product/agentbay","productPromotionInfoSecondText":"","productPromotionInfoSecondLink":""},{"$id":"1","productPromotionGroupingTitle":"产品交流","productPromotionInfoFirstText":"无影 AgentBay 用户交流群","productPromotionInfoFirstLink":"https://img.alicdn.com/imgextra/i3/O1CN019uJaAu28GXyoau67d_!!6000000007905-2-tps-1080-1357.png","productPromotionInfoSecondText":"","productPromotionInfoSecondLink":""},{"$id":"2","productPromotionGroupingTitle":"新人专享","productPromotionInfoFirstText":"无影 AgentBay 新人0.01元优惠","productPromotionInfoFirstLink":"https://common-buy.aliyun.com/?spm=5176.30918410.J_WB32E9T-bokl57SJYCiyd.1.69a93c65F8UN9r&commodityCode=gws_agentbaypackage_public_cn","productPromotionInfoSecondText":"","productPromotionInfoSecondLink":""},{"$id":"3","productPromotionGroupingTitle":"开源社区","productPromotionInfoFirstText":"无影 AgentBay SDK 已开源","productPromotionInfoFirstLink":"https://github.com/aliyun/wuying-agentbay-sdk","productPromotionInfoSecondText":"","productPromotionInfoSecondLink":""}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}