当前位置:Gxlcms > html代码 > 浏览器图片不显示,myeclipse预览显示_html/css_WEB-ITnose

浏览器图片不显示,myeclipse预览显示_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:89人阅读

浏览器 图片

这是我的设计登陆界面

登陆后,去掉loginAction,在显示登陆界面

小弟一直不知道怎么回事?路劲一样为啥显示不出来,求大家给个意见


回复讨论(解决方案)

呵呵 估计发布站点的时候缺少图片了

不可能啊,我在tomcat的webapps文件夹下的netCourse项目中找到这个图片,firebug显示载入指定URL失败,但是在用户登陆成功后,在去掉地址栏中的loginAction后显示登陆界面就会显示图片,是不是Action的影响。还是配置文件web.xml中的要加什么配置,或者其他的。三天后就要答辩了,请能够知道原因的大神帮帮忙。

img src 换成完整路径,http://localhost:8080/netCaurse/images/u.jpg
另外检查u.jpg的文件权限。

谢谢您的建议。换成了绝对路劲,还是不行,新建了一个页面只是显示u.jpg这个图片可以显示,是不是资源加载问题,还是拦截器的原因,或者是spring.tld文件配置文件问题。
spring.tld文件配置信息:

URL tag based on the JSTL c:url tag. This variant is fully
backwards compatible with the standard tag. Enhancements include support
for URL template parameters.

url
org.springframework.web.servlet.tags.UrlTag
JSP

The URL to build. This value can include template place holders
that are replaced with the URL encoded value of the named parameter. Parameters
must be defined using the param tag inside the body of this tag.

value
true
true

各位,谢谢你们的解答,我自己解决了,小弟的拦截器拦截了整个网站,所以资源没有加载上,如果我的主页面不是登陆界面就没事。。。

人气教程排行