日期:2014-05-17  浏览次数:20683 次

为什么用了<meta http-equiv="Windows-Target" content="_top"网页还是能在分帧中显示,恳求个大神帮忙解决!
为什么用了<meta http-equiv="Windows-Target" content="_top"网页还是能在分帧中显示,恳求个大神帮忙解决!

------解决方案--------------------
没有这种属性吧。。ie5.5~ie8,firefox,chrome测试都没用

防止框架可以使用js
<script>
    if (top != self) top.location = self.location;
</script>