Home  >  Article  >  Backend Development  >  为何 codeIgniter框架调用的视图文件 不能链接外部的CSS样式文件

为何 codeIgniter框架调用的视图文件 不能链接外部的CSS样式文件

WBOY
WBOYOriginal
2016-06-13 12:57:42684browse

为什么 codeIgniter框架调用的视图文件 不能链接外部的CSS样式文件
刚学CodeIgniter  今天用控制器调用视图后  发现如果视图文件引用的外部CSS文件都没有效果   在视图文件内部打的样式则有效果 请问是什么原因  请高手指点CodeIgniter引用外部CSS文件的方法   越简单越好哈  太复杂了看不懂

比如 控制器  $this->load->view('aa.php');

视图文件aa.php 有句  代码

在视图文件里面还有个style1.css这个样式文件  运行控制器后  样式表完全没起做用 
------解决方案--------------------
位置错误,所有的相对路径是相对于网站根目录下index.php的。

所有的单入口框架都是这样的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn