How to import/include a CSS file using PHP code and not HTML code?

后端 未结 14 1915
無奈伤痛
無奈伤痛 2020-11-28 11:11

I have googled a lot but it seems that I am doing something wrong.

I want to do this:



        
14条回答
  •  误落风尘
    2020-11-28 11:54

    If you want to import a CSS file like that, just give the file itself a .php extension and import it anyway. It will work just fine :)

提交回复
热议问题