How to include all css kept in a directory?

后端 未结 8 2028
情歌与酒
情歌与酒 2020-12-03 10:20

Is it possible to include multiple css at once in html? Or to be precise, is it possible to include all css placed in a directory, in one go?
like at present what we d

8条回答
  •  遥遥无期
    2020-12-03 10:59

    You'd need to do this serverside. If you're using PHP, have a look at glob.

    For example:

    foreach (glob("path/to/css/*.css") as $css) {
        echo "\n";
    }
    

提交回复
热议问题