引的css地址是localhost/test/app/Tpl/res/css/index.css
这时是正确的显示。
但是我是用一个IndexAction里面的toLogin()方法,我display到index.html,浏览器地址变成了lcoalhost/test/app/index.php/Index/toLogin
引css的地址变成了localhost/test/app/index.php/Index/toLogin/Tpl/res/css/index.css
这样就引不到了~~
求助,怎么解决这个问题呢~
最佳答案