上传到tomcat之后访问变了,访问登录都正常,就是登录页面靠左了,不好看![]() 为什么我把做好了的登录页面 html,放在了TOMCAT 上就变了啊,变成靠左了,但是我在本地直接打开html 的时候是正常的啊,这个怎么回事啊????? 下面是在本地直接打开访问的,这样才是正常的啊。 ![]() <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>国家电网-登录页面</title> <link href="css/style2.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://192.168.59/WebReport/ReportServer?op=emb&resource=finereport.js"></script> <script type="text/javascript"> function doSubmit() { var username = FR.cjkEncode(document.getElementById("username").value); //获取输入的用户名 var password = FR.cjkEncode(document.getElementById("password").value); //获取输入的参数 jQuery.ajax({ url:"http://192.168.100.6/WebReport/ReportServer?op=fs_load&cmd=sso",//单点登录的管理平台报表服务器 dataType:"jsonp",//跨域采用jsonp方式 data:{"fr_username":username,"fr_password":password},//获取用户名密码 jsonp:"callback", timeout:5000,//超时时间(单位:毫秒) success:function(data) { if (data.status === "success") { window.location=data.url;//认证成功跳转页面,因为ajax不支持重定向所有需要跳转的设置 //登录成功 } else if (data.status === "fail"){ alert("用户名或密码错误");//登录失败(用户名或密码错误) } }, error:function(){ alert("超时或服务器其他错误");// 登录失败(超时或服务器其他错误) } }); } </script> </head> <body> <div class="top"> <ul> <li><a href="#none" class="hover">系统主页</a></li> <li><a href="#none">账号注册</a></li> <li><a href="#none">合格成绩公示</a></li> <li><a href="#none">报名流程</a></li> <li><a href="#none">常见问题</a></li> <li><a href="#none">返回首页</a></li> </ul> </div> <div class="main"> <div class="denglu"> <div class="text" style="font-size:13px;"><strong>重要提示:</strong><br /> 一、考生登录本系统可查看考试结果,还可查看并保存电子合格证书。<br /> 二、国网系统外考生可申请邮寄合格证书,付款一周后在“网银交费”页面可查看邮寄状态及快递单号。<br /> <font color="red">三、2014年2月24日后不再每日邮寄一次,将改成每两周邮寄一次,整体邮寄工作截止到5月15日。</font></div> <form name="login" method="POST"> <div class="dlk"> <table width="292" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="76" colspan="3"></td> </tr> <tr> <td width="65" style="font-size:14px;">身份证号</td> <td colspan="2"> <input id="username" type="text" class="dlinput"/> </td> </tr> <tr> <td height="16" colspan="3"></td> </tr> <tr> <td>登录密码</td> <td colspan="2"><input id="password" type="password" class="dlinput" /></td> </tr> <tr> <td height="16" colspan="3"></td> </tr> <tr> </tr> <tr> <td height="16" colspan="3"></td> </tr> <tr> <td> </td> <td colspan="2"><input type="button" value="登录" class="loginbtn" /></td> </tr> <tr> <td> </td> <td colspan="2"><table width="224" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="24"><a href="#none" class="mm">忘记登录密码?</a></td> <td align="right"><a href="#none" class="zc" style="font-size:13px;">立即网上注册</a></td> </tr> </table></td> </tr> </table> </div> </div> </div> <div class="footer">Copyright © 2016 xxx.com All Rights Reserved 版权所有 国家电网</div> </form> </body> </html> |