Can I detect IE Document Mode on the server side using the HttpBrowserCapabilities object

后端 未结 3 555
小鲜肉
小鲜肉 2021-01-22 04:57

I can find out the browser version and specific capabilities using the HttpBrowserCapabilities object, but is there a way I can find the Document Mode that the browser is using

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-22 05:14

    No. you cannot determine the document mode via server side code. You can check the compat. mode with the trident value in the user agent, which defaults the document mode. Key word..DEFAULTS..IT CAN STILL BE CHANGED via F12. If a user then changes the document mode again, to something besides what compat. mode changes it to, then you will not be able to see the change.

提交回复
热议问题