After the website is built, it can be normally displayed on IE6, but it is completely messy on IE8. What should I do?
In fact, you only need to use a small piece of simple JS Code to easily solve this problem.
The JS Code of the IE7 website is:
<! -[IfltIE7]> <scriptsrcscriptsrc = "http://ie7-js.googlecode.com/svn/version/2.0 (beta3)/IE7.js" type = "text/javascript"> </<span> script> <! [Endif]->
The JS Code of the IE8 website is:
<! -[IfltIE8]> <scriptsrcscriptsrc = "http://ie7-js.googlecode.com/svn/version/2.0 (beta3)/IE8.js" type = "text/javascript"> </span> script> <! [Endif]->
The principle is to call a project on GoogleCode.
If there is no problem with our website design works on IE7 and IE8 shows that there is a problem, and we do not want to make a lot of modifications to increase the website design workload, we only need to add
<Metahttp-equivmetahttp-equiv = "x-ua-compatible" content = "IE = 7"/>
You can solve the problem.