回答

1

你可以尝试复制下面的HTML,你有你的主登录页面上插入模式对话框:

<form method="post" action="/"> 

      <div style="margin-top:-4px;"> 
       <a href="javascript:void(0);" onclick="$('#loginFormMiniMain').fadeOut('fast');">X</a> 
       <input type="hidden" name="RET" value="-1"> 
      </div> 

      <table cellpadding="0" cellspacing="6" border="0" align="center"> 
      <tbody><tr> 
      <td align="right">Username</td> 
      <td><input type="text" class="input" id="username" name="username" size="15" value=""> 
      <input type="hidden" name="auto_login" value="1"></td> 
      </tr> 

      <tr> 
      <td align="right">Password</td> 
      <td><input type="password" class="input" name="password" size="15"></td> 
      </tr> 

      <tr> 
       <td colspan="2" align="right"> 
        <a href="http://expressionengine.com/forums/member/forgot_password/">Forgot your password?</a>&nbsp; 
        <input type="submit" class="submit" value="Login"> 
       </td> 
      </tr> 
      </tbody></table> 
     </form> 
0

我用的fancybox。将其称为iframe,并确保将其发布到相应的模板/页面,您将在return =“”参数中设置该模板/页面,并且如果它设置为iframe,则会将该页面发布到仍在模式内的页面窗口(fancybox)。