WPF .net4 webBrowser and Internet Explorer 8

前端 未结 2 2061
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 03:30

I have a WPF .net4 app with a webBrowser component that navigates to a local HTML page that uses a CSS file.

When I navigate to the page using IE8 the CSS styling is

相关标签:
2条回答
  • 2021-01-06 03:48

    This is probably a little late but I stumbled on to this question in search of other answers.

    the WebBrowser control by default renders in quirks mode. but in your webpage you can specify the version of IE to use to render in the meta data.

    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    

    IE=edge instructs the WebBrowser control to use the latest version of IE it supports

    0 讨论(0)
  • 2021-01-06 04:00

    The best explanation that I have heard for this behavior is that the webbrowser control is running in some form of 'compatability' mode.

    0 讨论(0)
提交回复
热议问题