输入banner图图片脚本导航/分类

CSS里面讯用数据库的方法

#home .screen{
background: url(../images/home_frei.png) no-repeat center 417px;
}

上面的是在CSS文件里面,
如何通过PHP程序调用,把../images/home_frei.png背景图片换了,

有那些方法。

因为CSS好像不能直接加PHP语句


回复讨论(解决方案)

你的css文件写成php文件。
css.php
#home .screen{
background: url() no-repeat center 417px;
}

使用时