问题是这样的我在A窗口用showModalDialog方法弹出一个新窗口B,但单击新窗口B中的按钮后,IE8下又会弹出一个新窗口,但IE6下不会。因为我加了  <base target="_self">这行代码。难道IE8下,这个语句没有用?IE6下是可以的。求解。

解决方案 »

  1.   


    我已经说了,我添加了<base target="_self"> IE6下有用,IE8下为什么不启作用。
      

  2.   


    我这好着呀
    <asp:Button ID="Button1" runat="server" Text="新 增" Width="55px" />this.Button1.Attributes.Add("onclick", "window.showModalDialog('XXXXX.ASPX?id=" + ID+ "','window','dialogWidth:880px;DialogHeight=380px;status:no;help:no;resizable:yes;');window.location='#';");
    IE8 测试正常
      

  3.   

    还有,子窗体加上   <base target="_self" />我这边没问题的,楼主可以拿我这个测试下。不行在说
      

  4.   


    你这个是说如何弹出对话框,我说了,我是用A窗口操作,用showModalDialog方法了弹出的B窗口,然后B窗单击按钮,B窗口又弹出了新窗口,而B窗口我添加了  <base target="_self">   为什么IE8下不起作用。
      

  5.   

    楼主一样的啊三个窗口 也一样
    我已经测试完毕子窗口别忘了 加上<base target="_self" /> 这个
    楼主可自己去先试试
      

  6.   

    然后B窗单击按钮,B窗口又弹出了新窗口,.....
    你在新窗口上 加<base target="_self" />了?加了之后在试试
      

  7.   

    我在提问的时候就说明了,我加了这行代码
    <base target="_self"> 
      

  8.   

    ie8 有强制 ie7模式!具体问google
      

  9.   

    <meta http-equiv="x-ua-compatible" content="ie=7" />
    加上看看
      

  10.   

    解决了。
    问题源头解决了将<base target="_self" />这一段放到<title></title>的下面,放在其它地方不行。