从iframe覆盖IE仿真模式到IE8

时间:2016-05-04 09:06:30

标签: javascript html iframe internet-explorer-8

我有一个场景,我的网页在IE7中加载,但它有一个需要在IE8中加载的iframe。

父页面使用下面的元标记,现在根本无法更改。

<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible' />

我尝试使用以下元标记,但没有用。

<meta content='IE=EmulateIE8' http-equiv='X-UA-Compatible' />  
<meta http-equiv="x-ua-compatible" content="IE=8">

无论如何从iframe改为IE8?

1 个答案:

答案 0 :(得分:0)

好的,只有真正实用的解决方案,如果你**必须**支持IE7(这些天谁使用它?)

    public Student validatingStudent(Student student) {
    List validStdt   = new ArrayList();
    String sql       = "select * from studentdb where email =  '"+ student.getEmail()+"' and password = '"+ student.getPassword() +"'";
    System.out.println("Entered Query: " + sql);
    int i=jt.queryForInt("select count(*) from studentdb where email =  '"+ student.getEmail()+"' and password = '"+ student.getPassword() +"'");
    if(i!=0)
        student = jt.queryForObject(sql, new ValidationRowMapper());
    else
        student=null;
        return student;
}

ie7部分将被所有其他浏览器中的评论隐藏,仅显示在ie7或以下。