我做:
<link rel="stylesheet" type="text/css" media="screen" href="<? echo TMPL ?>css/name-of-file.css.PHP">
然后在.css.PHP文件的顶部:
<? header('Content-Type: text/css'); // print out your PHP-driven css... ?>