怎么放在tomcat 登录页面变了啊,跟本地不一样??

上传到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>&nbsp;</td>
          <td colspan="2"><input type="button" value="登录" class="loginbtn" /></td>
        </tr>
        <tr>
          <td>&nbsp;</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 &copy; 2016 xxx.com All Rights Reserved 版权所有 国家电网</div>
  </form>
</body>
</html>





FineReporttrory 发布于 2016-12-12 12:43
回答问题
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共5回答
最佳回答
0
迈达斯之手发布于2016-12-12 12:45(编辑于 2023-9-6 09:34)
555
最佳回答
0
trory发布于2016-12-12 12:47(编辑于 2023-9-6 09:34)
555
  • 哈易春 哈易春

    简单的问题简单处理,请问你重启tomcat了没有,。
    回复
    2016-12-12 13:03 
最佳回答
0
哈易春发布于2016-12-12 13:03(编辑于 2023-9-6 09:34)
555
最佳回答
0
376333837发布于2016-12-12 13:51(编辑于 2023-9-6 09:34)
555
最佳回答
0
静听禅鸣发布于2016-12-12 14:49(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 624浏览人数
  • 最后回答于:2016-12-12 14:49
    活动推荐 更多
    热门课程 更多
    返回顶部