<script language=”JavaScript”> if (window != top) top.location.href = location.href; </script> 在登录页面加上如上js,若登录页面被包含在iframe中,则会跳出iframe。