点击之后,页面任何没问题。
此时的本地地址:localhost/public/index.php
<a href="{:url('index')}">首页</a>
点击之后,只加载到html文件,加载不到css文件。审查元素时,显示出来的路径没问题,报错说css文件却是空的。
此时的本地地址:localhost/public/index.php/index/index/index.html
如果我直接访问localhost/public/index/index/index,页面加载到的是html文档,加载不到css等文件,跟使用{:url('index')}跳转的情况一模一样
是我的方法不对,还是配置没写好?
如果有其他方法,请告诉我怎么实现页面(超链接)跳转。
最佳答案
