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" />
posted @ 2011-09-01 09:07  relix  阅读(525)  评论(0编辑  收藏  举报