ie8.0 不能用document.all兼容IE7模式

用document.getelementbyid 则有些标签有name没id。 
用document.getElementsByName()还是不行


 
 
让IE8运行在IE7兼容模式,在head里加个 
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
 
OK  问题解决了。。。
 
如果还是不行,试试下面
<meta http-equiv="X-UA-Compatible" content="IE=7" />
原文地址:https://www.cnblogs.com/relix/p/2161547.html