[已解决]ThinkPHP header 返回css 无效的问题讨论

浏览:789 发布日期:2017/06/16 分类:求助交流 关键字: header Thinkphp css
今天下午我有一个很大胆的想法, 用 thinkphp 返回 css类型的内容,然后,在
View/Index/index.html中放入的是CSS代码,其中部分被变量化
Controller/IndexController.class.php中放入下面一句话

header('Content-type: text/css');

咋不生效来,是我想法太大胆了还是说,我的实现方式不太对
最佳答案
评论() 相关
后面还有条评论,点击查看>>