【发布时间】:2017-04-12 09:36:34
【问题描述】:
我正在用 php 编写 CMS 并想知道是否可以将 url 传递给图像,我的 php 页面使用 Twig 模板进行编码,并且我正在使用 {{ image1url }} 来回显图像 url,但是是否可以将该网址传递给css文件?像下面这样...
<link rel="stylesheet" href="{{ config['website']['web_address'] }}/themes/{{ config['template']['theme'] }}/{{ config['template']['css_folder'] }}/all.css?image_url={{ config['website']['image_url'] }}" type="text/css"/>
【问题讨论】: