css不加载在codeigniter [英] css not loading in codeigniter
本文介绍了css不加载在codeigniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有此代码
<link href = "<?php echo base_url(); ?>css/style.css" rel="stylesheet" type="text/css" />
从css文件夹。 echo base_url()
本身工作。
我也自动加载了 url帮助器
,所以我真的没有看到这里的问题,但它仍然不加载。
which supposed to load the style.css
from the css folder. The echo base_url()
itself works.
I also have autoloaded the url helper
, so i really don't see the problem here, but it still doesn't load.
推荐答案
css文件的默认位置与应用程序的级别相同,即
the default location for css files is the same level as the application i.e.,
/css
/application
检查路径为已建议。
这篇关于css不加载在codeigniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文