Internet Explorer behavior as Mozilla Firefox or Chrome

岁酱吖の 提交于 2019-12-12 20:17:38

问题


Is there a solution to get Internet Explorer to behave as Firefox or Chrome? I am looking for a solution that would not use css hacks. I mean maybe some scripts to force change all behavior of IE.

Thanks a lot!


回答1:


You can have your users download and install Google Chrome Frame, then add this meta tag to your page head per the Chrome Frame developer guide:

<meta http-equiv="X-UA-Compatible" content="chrome=1">

Of course, this requires user action. You can't control what browser your users use, nor can you force a certain browser to act like another browser through your own code alone.




回答2:


Sorry can't be done, this is one of the many joys of being a web developer.... Browser quirks :-)




回答3:


Nope. IE sucks because it sucks. Closest you get is something like IE7.js but it comes with limitations and drawbacks. It can't for example magically give IE full SVG or WebGL support but it can give IE better CSS selector support and fix some bugs.




回答4:


I've had good experiences with combining these two libraries: http://code.google.com/p/ie7-js/ & http://code.google.com/p/html5shim/ to adjust for various css variances and newer html5 tags. Can't say if it'll solve any of the issues you have, and it may in some cases still require some css conditionals / hacks, but it'll most certainly iron out many smaller issues.

So I usually drop these into my header of any major project:

    <!-- Let's make IE6-8 bend to our will -->
<!--[if lt IE 9]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->



回答5:


XULRunner and the Mozilla ActiveX Control can be combined to run Gecko in IE.

References

  • Using wxWidgets in FireBreath

  • Deployment of NPAPI plugin with minimal user steps

  • Browser Plugins vs Extensions: the difference

  • XULRunner ActiveX Plugin

  • ActiveX Control for Hosting Netscape Plug-ins in IE



来源:https://stackoverflow.com/questions/9900748/internet-explorer-behavior-as-mozilla-firefox-or-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!