Problem with HTML Parser in IE

后端 未结 9 881
醉梦人生
醉梦人生 2020-12-24 05:56

I am trying to create a dialog box that will appear only if the browser selected is IE (any version) however I get this error:

Message: HTML Parsing E

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-24 06:17

    Like Sergey Kirienko said: use conditional comments. The code below will only be executed by internet explorer. Microsoft has good information on this page.

    
    

    If you want a specific version you can test for that too:

    
    

提交回复
热议问题