关于html转成jsp页面,样式丢失问题 |
您所在的位置:网站首页 › layuicss样式改了没变化 › 关于html转成jsp页面,样式丢失问题 |
在前端编写完页面后,后台程序员需要把html页面转成jsp页面,有时候会出现样式丢失。我百度了一下,发现大多数都是表头配错或者路径了。 html转成jsp路径没有变,还出现样式丢失,那么可能是web.xml配置中对所有路径进行了拦截,如下 SpringMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:spring-mvc.xml 1 true SpringMVC / 只需要改成把css,图片等过滤就好,如下 SpringMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:spring-mvc.xml 1 true SpringMVC / *.jpg *.js *.css *.png *.gif *.json *.html *.htm *.swf |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |