日期:2014-05-16  浏览次数:20416 次

css 文件加载不进的问题。
web   application   跟目录:
war   -|login.jsp
          |common/css/pageStyle.css

login.jsp   &   common   locate   at   the   root   directory.

in   login.jsp   ,   I   coded   like   this   :

<link   href   =   "common/css/pageStyle.css "   rel   =   "stylesheet "   type   =   "text/css "   />
or   this   :
<link   href   =   "../common/css/pageStyle.css "   rel   =   "stylesheet "   type   =   "text/css "   />

it   doesn 't   work   either   .

why   ?

The   CSS   File   just   define   the   style   of   the   body   tag:
body   {
background-color   :   #FEFEFE
}


------解决方案--------------------
<link href = "./common/css/pageStyle.css " rel = "stylesheet " type = "text/css " />
少一点试试