首页 \ 问答 \ 即使文档模式已修复,IE8也会根据浏览器模式呈现不同的网页 - Intranet网站(IE8 renders web page differently based on browser mode even though document mode is fixed - Intranet site)

即使文档模式已修复,IE8也会根据浏览器模式呈现不同的网页 - Intranet网站(IE8 renders web page differently based on browser mode even though document mode is fixed - Intranet site)

我发现IE8基于浏览器模式呈现不同的网页,尽管文档模式始终设置相同。 这是IE8的错误吗?

背景是:

  • IE8(SOE的一部分)正在查看企业内部网。
  • 在兼容性设置中勾选在兼容模式下显示Intranet站点。
  • 我正在使用元标记方法强制我的Intranet页面的文档模式: <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  • 这导致浏览器模式设置为IE8 Compat,文档模式设置为IE8标准。

到目前为止,这一切都很好,没有任何问题,我期望的页面布局等等。

最近刚添加了一些功能(我不会说现阶段的问题 - 关于页面渲染模式的问题)并且页面布局不正确。 在开发人员工具栏中将浏览器模式更改为IE8(或在兼容性视图设置中取消选中)可修复布局问题。 这让我感到惊讶,因为文档模式没有变化。

所以要重新组合组合:

  • Broswer Mode=IE8 Compat, Document Mode=IE8 Standards [已破]
  • Broswer Mode=IE8, Document Mode=IE8 Standards [工程]

文档模式是相同的,唯一改变的是浏览器模式。 我认为文档模式是影响页面呈现的唯一因素,浏览器模式基本上只影响请求中发送的UA字符串。 我纠正了,还是我错了? 如果我是正确的,那么一旦确定了文档模式,那么浏览器模式应该对渲染没有任何影响。 这是IE8中的错误吗? 或者我错了? 即使使用相同的文档模式,浏览器模式是否会影响渲染?

限制:

  • 我无法控制在所有用户的兼容性视图设置中的兼容性视图中显示内部网:公司内部网,我们有其他遗留应用程序,过多的测试以确保它们都在标准模式下工作,永远不会获得批准来制作该类型全球变化)。
  • 我无法为所有用户升级浏览器。 我们刚刚完成了从IE6升级到IE8的6个月以上的项目。

I am finding that IE8 renders web pages differently based on Browser mode despite Document mode always being set the same. Is this an IE8 bug?

Background is:

  • A corporate intranet being viewed by IE8 (part of the SOE).
  • Display Intranet sites in compatibility mode is ticked in compatibility settings.
  • I am forcing document mode for my intranet pages by using the meta tag approach: <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  • This results in Browser mode set to IE8 Compat, and Document mode set to IE8 Standards.

So far this has all been good, no issues whatsoever, pages layout as I expect, etc etc.

Just recently some functionality was added (I won't say what at this stage - the question is about page rendering modes) and the page is laying out incorrectly. Changing the Browser mode to IE8 in Developer Toolbar (or unticking in Compatibility View Settings) fixes the layout issues. This surprised me as the Document mode is unchanged.

So to re-cap the combinations:

  • Broswer Mode=IE8 Compat, Document Mode=IE8 Standards [broken]
  • Broswer Mode=IE8, Document Mode=IE8 Standards [works]

The document mode is the same, the only thing changing is the browser mode. I thought the document mode is the only thing that should affect page rendering, and that browser mode only affects, basically, the UA string sent in the request. Am I correct, or do I have it wrong? If I am correct then once document mode is determined then browser mode should have no affect at all on rendering. Is this a bug in IE8? Or am I wrong? Does the browser mode affect rendering even if the same document mode is used?

Limitations:

  • I have no control over unticking Display intranets in compatibility view in compatibility view settings for all our users (corporate intranet, we have other legacy apps, too much testing to make sure they all work in Standards mode, would never get approval to make that type of global change).
  • I have no option to upgrade browser for all users. We only just finished a 6+ month project upgrading from IE6 to IE8.

原文:https://stackoverflow.com/questions/15800605
更新时间:2022-01-11 22:01

最满意答案

简短版:是的,它是。

长版本:是的,它是,但您需要具体说明要为rgb检查哪个像素。 如果你想获得调色板然后使用Android的调色板库 - 它将从指定的视图中提取原色。


Short version: Yes, it is.

Long version: Yes, it is, but You need to be specific about which pixel You want to examine for rgb. If You want to just get color palette then use Palette library from Android - it will extract primary colors from specified view.

相关问答

更多

相关文章

更多

最新问答

更多
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)
  • 是否可以嵌套hazelcast IMaps?(Is it possible to nest hazelcast IMaps? And whick side effects can I expect? Is it a good Idea anyway?)
  • UIViewAnimationOptionRepeat在两个动画之间暂停(UIViewAnimationOptionRepeat pausing in between two animations)
  • 在x-kendo-template中使用Razor查询(Using Razor query within x-kendo-template)
  • 在BeautifulSoup中替换文本而不转义(Replace text without escaping in BeautifulSoup)
  • 如何在存根或模拟不存在的方法时配置Rspec以引发错误?(How can I configure Rspec to raise error when stubbing or mocking non-existing methods?)
  • asp用javascript(asp with javascript)
  • “%()s”在sql查询中的含义是什么?(What does “%()s” means in sql query?)
  • 如何为其编辑的内容提供自定义UITableViewCell上下文?(How to give a custom UITableViewCell context of what it is editing?)
  • c ++十进制到二进制,然后使用操作,然后回到十进制(c++ Decimal to binary, then use operation, then back to decimal)
  • 以编程方式创建视频?(Create videos programmatically?)
  • 无法在BeautifulSoup中正确解析数据(Unable to parse data correctly in BeautifulSoup)
  • webform和mvc的区别 知乎
  • 如何使用wadl2java生成REST服务模板,其中POST / PUT方法具有参数?(How do you generate REST service template with wadl2java where POST/PUT methods have parameters?)
  • 我无法理解我的travis构建有什么问题(I am having trouble understanding what is wrong with my travis build)
  • iOS9 Scope Bar出现在Search Bar后面或旁边(iOS9 Scope Bar appears either behind or beside Search Bar)
  • 为什么开机慢上面还显示;Inetrnet,Explorer
  • 有关调用远程WCF服务的超时问题(Timeout Question about Invoking a Remote WCF Service)