maybe浏览器兼容性问题,本地和服务器都用同一个浏览器,版本也要一致

解决方案 »

  1.   

    可能是引入的css,js的路径设置有问题- -
      

  2.   


    private static String getServerRootPath()
    {
                Properties props=System.getProperties();
             String opStyle props.getProperty("os.name");
        String divideLine = "/";
        if(opStyle.toLowerCase().startsWith("window"))
        {
            divideLine = "\\\\";
        }
    String [] path = System.getProperty("user.dir").split(divideLine);
    StringBuilder basePath = new StringBuilder();
    for(int i=0;i<path.length;i++)
    {
    if(i<(path.length-1))
    {
      basePath.append(path[i]).append("/");
    }
    }
    return basePath.toString();
    }这段代码可以获取服务器的根路径,你可以试试根据这个来设置路径
      

  3.   

    已解决,是因为js变量没有声明,var下就可以了