How to include all css kept in a directory?

后端 未结 8 2026
情歌与酒
情歌与酒 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 11:13

    There may be some possible workarounds:

    • Consider the idea of importing a PHP page (e.g. ./tabs_css/allcss.php) which concatenates and returns all the css in the directory. This may be a little CPU intensive.

    • Consider creating a combo css file which is concatenation of all of your CSS files. This might be possible to create automatically by adding special hooks to your version-control system.

提交回复
热议问题