Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/274.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在重定向页面后,CSS不会在codeigniter中获取_Php_Html_Css_Codeigniter - Fatal编程技术网

Php 在重定向页面后,CSS不会在codeigniter中获取

Php 在重定向页面后,CSS不会在codeigniter中获取,php,html,css,codeigniter,Php,Html,Css,Codeigniter,重定向页面后,存储在assets文件夹中的css和js不会被提取到该重定向页面中 下面是重定向页面的代码,该页面的名称是interior.php <a class="viewall pull-right" href="<?php echo base_url("details/profile/".$article->type_id); ?>"> 使用绝对URL而不是使用相对URL。您可以使用base\u url()通过以下方式实现此目的: 试试谢谢你,伙计,它可以工

重定向页面后,存储在assets文件夹中的css和js不会被提取到该重定向页面中

下面是重定向页面的代码,该页面的名称是interior.php

<a class="viewall pull-right" href="<?php echo base_url("details/profile/".$article->type_id); ?>">

使用绝对URL而不是使用相对URL。您可以使用
base\u url()
通过以下方式实现此目的:


试试
谢谢你,伙计,它可以工作。确保你也在config.php中设置了基本url
<link rel="stylesheet" href="../assets/css/style.css"/>