background: url("/resources/login/img/bg-login.png") no-repeat scroll center center;
比如这个css 样式:通过访问后就会成为 ip:port:/resources/login/img/bg-login.png 的实际目录
background: url("resources/login/img/bg-login.png") no-repeat scroll center center;
background: url("./resources/login/img/bg-login.png") no-repeat scroll center center;
而如果是这样的话,就是相对路径,而他的实际目录是:ip:port:/项目名/其他目录/resources/login/img/bg-login.png