top.php
$smarty->assign('style_url',STORE_URL.'csscon.php?store='.STORE_ID);
$smarty->display(PATH.'top.tpl');
顶部.tpl
<link rel="stylesheet" href="{$style_url}">
csscon.php
include PATH.'css/'.STORE_ID.'/css/style.css';
如果查看视图源代码,它会显示所有的CSS样式,但并没有应用CSS。那么我该如何应用这种风格呢?
感谢
如果在css文件夹中放入一个名为index.html的空白页面,如果有人转到http://url/css/.