Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/234.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/91.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文件?_Php_Html_Css_Cfml - Fatal编程技术网

Php 如何使用查询字符串链接到服务器生成的CSS文件?

Php 如何使用查询字符串链接到服务器生成的CSS文件?,php,html,css,cfml,Php,Html,Css,Cfml,我想这样做: <link href="/style-render?s=base" rel="stylesheet" type="text/css"> 所以我知道有可能我只是不知道自己做错了什么。我只是想出来了 因此,由于我使用的是CFML,我必须使用cfcontent标记来指定内容类型,如下所示: <cfcontent type="text/css; charset=utf-8"> 在php中,您可以这样做: <?php header( 'Conten

我想这样做:

<link href="/style-render?s=base" rel="stylesheet" type="text/css">
所以我知道有可能我只是不知道自己做错了什么。

我只是想出来了

因此,由于我使用的是CFML,我必须使用
cfcontent
标记来指定内容类型,如下所示:

<cfcontent type="text/css; charset=utf-8">

在php中,您可以这样做:

<?php
   header( 'Content-Type: text/css; charset=UTF-8' );
?>

希望这对别人有帮助

我刚想出来

因此,由于我使用的是CFML,我必须使用
cfcontent
标记来指定内容类型,如下所示:

<cfcontent type="text/css; charset=utf-8">

在php中,您可以这样做:

<?php
   header( 'Content-Type: text/css; charset=UTF-8' );
?>

希望这对别人有帮助

我刚想出来

因此,由于我使用的是CFML,我必须使用
cfcontent
标记来指定内容类型,如下所示:

<cfcontent type="text/css; charset=utf-8">

在php中,您可以这样做:

<?php
   header( 'Content-Type: text/css; charset=UTF-8' );
?>

希望这对别人有帮助

我刚想出来

因此,由于我使用的是CFML,我必须使用
cfcontent
标记来指定内容类型,如下所示:

<cfcontent type="text/css; charset=utf-8">

在php中,您可以这样做:

<?php
   header( 'Content-Type: text/css; charset=UTF-8' );
?>


希望这对别人有帮助

您需要设置
内容类型
标题。很有可能它呈现为
纯文本
而不是
text/css

在PHP中,您可以将标题设置为:


标题('Content-Type:text/css')

您需要设置
内容类型
标题。很有可能它呈现为
纯文本
而不是
text/css

在PHP中,您可以将标题设置为:


标题('Content-Type:text/css')

您需要设置
内容类型
标题。很有可能它呈现为
纯文本
而不是
text/css

在PHP中,您可以将标题设置为:


标题('Content-Type:text/css')

您需要设置
内容类型
标题。很有可能它呈现为
纯文本
而不是
text/css

在PHP中,您可以将标题设置为:


标题('Content-Type:text/css')

浏览器是否请求资源(使用FireBug或类似工具检查)?它是否返回所需的CSS?另外,您确定您的资源“样式呈现”为生成的CSS返回正确的内容类型吗?您的浏览器的开发模式将帮助您!谢谢@JesperSM!我没有在样式呈现文件中声明内容类型。浏览器是否请求资源(使用FireBug或类似工具检查)?它是否返回所需的CSS?另外,您确定您的资源“样式呈现”为生成的CSS返回正确的内容类型吗?您的浏览器的开发模式将帮助您!谢谢@JesperSM!我没有在样式呈现文件中声明内容类型。浏览器是否请求资源(使用FireBug或类似工具检查)?它是否返回所需的CSS?另外,您确定您的资源“样式呈现”为生成的CSS返回正确的内容类型吗?您的浏览器的开发模式将帮助您!谢谢@JesperSM!我没有在样式呈现文件中声明内容类型。浏览器是否请求资源(使用FireBug或类似工具检查)?它是否返回所需的CSS?另外,您确定您的资源“样式呈现”为生成的CSS返回正确的内容类型吗?您的浏览器的开发模式将帮助您!谢谢@JesperSM!我没有在样式呈现文件中声明内容类型。