我使用瓷砖,但baselayout的css文件不会应用于所有页面 [英] I am using tiles but the css file of baselayout wont be applied on all pages
本文介绍了我使用瓷砖,但baselayout的css文件不会应用于所有页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题是,我有一个css文件,从我的baselayout.jsp文件指向如下,当我在index.php它应用CSS,但当我移动到Profile / view.jsp它不。 / p>
当我看着源,我注意到它是查找css文件在Profile / stylesheets / Base.css而不是myproject / stylesheets / Base.css,如何指向
< link href =< s:url value =/ stylesheets /mycss.css\"/> rel =stylesheet
type =text / css/>
解决方案
,如下
: http://www.example.com/myPreoject/stylesheets/Base.css
the problem is that I have a css file that is pointed from my baselayout.jsp file as following, when I am in index.php it applies the css but when I move to Profile/view.jsp it does not.
when I look at the source I noticed it is looking the css file in Profile/stylesheets/Base.css rather than myproject/stylesheets/Base.css, how to point to it in a way that works on all pages.
<link href="<s:url value="/stylesheets/mycss.css"/>" rel="stylesheet"
type="text/css" />
解决方案
Its a breeze, just change the address to solid address, as following
http://www.example.com/myPreoject/stylesheets/Base.css
这篇关于我使用瓷砖,但baselayout的css文件不会应用于所有页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文