WPF WebBrowser Control - position:fixed Element jumps while scrolling (Windows 8)

前端 未结 2 1359
北恋
北恋 2020-11-27 08:22

We use the WPF WebBrowser control to display an embedded page. On Windows 8 we observe a strange jumping behavior of elements with css position:fixed while scrolling.

2条回答
  •  忘掉有多难
    2020-11-27 09:09

    If there are discrepancies in behavior of the same web page loaded into WebBrowser control and standalone IE browser, the problem can often be fixed by implementing WebBrowser Feature Control.

    Once the feature control has been implemented, it makes sense to verify that is observed by WebBrowser and the page is actually rendered in HTML5 standard mode, here's how.

    [UPDATE] The OP's sample page actually renders correctly when FEATURE_BROWSER_EMULATION is set to 9000 and the META tag is fixed to be (content="IE9" is not a valid value).

提交回复
热议问题