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

后端 未结 14 1914
無奈伤痛
無奈伤痛 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:52

    You can also do the following:

    1. Create a php file in includes folder, name it bootstrap_css.php for example
    2. paste the css code files to file created above

       ';
      
       $business = '';
      
        echo $minCss;
        echo $business;
      ?>
      
    3. in the html header, include the css files as follows

       
      

提交回复
热议问题