不排除浏览器和服务器的原因。第一次打开的时候很有可能是因为同时链接数太多造成部分链接不能打开,正好遇到CSS的那个链接打不开,就会出问题了。
不过也有可能是你的JSP在第一次访问的时候没有引入CSS,那就要看HTML页面了。

解决方案 »

  1.   

    部分代码:
    <script Language="JavaScript">
     function quit() {
      if(confirm("确定要退出吗?")){
        window.location.href="loginOut.jsp";
    }
    return false;
      } </script><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <base href="http://www.hkhemei.cn/">
    <HEAD>
    <TITLE>香港合美家具国际有限公司</TITLE>
    <META http-equiv=Content-Type content="text ml; charset=gb2312">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <LINK href="image ml.css" type=text/css rel=stylesheet>
    <META content="MSHTML 6.00.2900.3243" name=GENERATOR>
    <style type="text/css">
    <!--
    .STYLE1 {
    color: #DF4FCD;
    font-weight: bold;
    }
    #Layer1 {
    position:absolute;
    width:200px;
    height:99px;
    z-index:1;
    left: 23px;
    top: 384px;
    }
    #Layer2 {
    position:absolute;
    width:200px;
    height:115px;
    z-index:2;
    visibility: hidden;
    }
    -->
    </style>
    <script type="text/JavaScript">
    <!--
    function MM_findObj(n, d) { / 4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }function MM_showHideLayers() { / 6.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    //-->
    </script>
    </HEAD>