IE10 renders in IE7 mode. How to force Standards mode?

后端 未结 5 1799
深忆病人
深忆病人 2020-11-22 13:54

On microsoft\'s site they claim that simple doctype declaration is enough. But even a document as short as this falls back to IE7 mode:

         


        
5条回答
  •  轮回少年
    2020-11-22 14:43

    It worked perfectly for me when i did the folowing:

    On http://msdn.microsoft.com/en-us/library/gg699338(v=vs.85).aspx

    Used the exact example they provide in the first box(added the missing at the bottom), opened it in IE10 and standards was forced, i think you may need actual content in the html for it to force standards not sure though.

    My suggestion would be to replace your empty code with actual content(something simple) and see what it does.

提交回复
热议问题