用户名和密码那个是放在一个iframe里的,你可以从他主页面的源码看到:<h2 class="none">LOGIN登录</h2> <iframe id="iframe1" name="login_frame" frameborder="0" scrolling="no" width="100%" height="100%" allowTransparency="true"></iframe>... var ss = 'http://ui.ptlogin2.qq.com/cgi-bin/login?link_target=blank&target=self&appid=8000108&hide_title_bar=1&s_url=http%3A%2F%2Fimgcache.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3fpara%3dizone&f_url=loginerroralert&css=http%3A//imgcache.qq.com//qzone_v5/izone/css/login_iframe.css';// var f = document.getElementById("iframe1"); f.src = ss;具体登陆框地址是下面这个:http://ui.ptlogin2.qq.com/cgi-bin/login?link_target=blank&target=self&appid=8000108&hide_title_bar=1&s_url=http%3A%2F%2Fimgcache.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3fpara%3dizone&f_url=loginerroralert&css=http%3A//imgcache.qq.com//qzone_v5/izone/css/login_iframe.css分析这个页面找到下面代码,u是用户名,p是密码,verifycode是验证码,submit是登录按钮: <input type="text" class="inputstyle" id="u" name="u" value="" style="color:#CCCCCC;ime-mode:disabled" tabindex="1" onfocus="ptui_onUserFocus('u', '#000000')" onblur="ptui_onUserBlue('u', '#CCCCCC')" /> <label><a target="_blank" href="http://id.qq.com?from=pt" tabindex="7" id="label_newreg"></a></label></li> </li> <li><span><u id="label_pwd"></u></span> <input type="password" class="inputstyle" id="p" name="p" value="" maxlength="16" tabindex="2"/> <label><a target="_blank" tabindex="8" href="http://ptlogin2.qq.com/ptui_forgetpwd" onclick="onClickForgetPwd()" id="label_forget_pwd"></a></label></li> <li><span for="code"><u id="label_vcode"></u></span> <input name="verifycode" type="text" style="ime-mode:disabled" class="inputstyle" id="verifycode" value="" maxlength="4" tabindex="3"/></li> <input type="submit" tabindex="5" disabled="disabled" value="" class="btn" id="login_button" />