【发布时间】:2012-09-04 05:33:11
【问题描述】:
我有一个这样的样式表链接
<link href="css/<? echo $theme;?>/styles.css" rel="stylesheet" type="text/css" />
在 CSS 内部,我希望能够回显 db 输出的背景图像
body{ background-image:url(../../images/<?php echo $theme.'/'.$background;?>);}
我尝试将以下内容添加到页面的开头,但它只是以 html 代码输出所有内容
<? header ("Content-type: text/css");?>
我确定这有点问题,谁能建议最好的行动方案?
提前致谢
【问题讨论】: