Referencing a .css file in github repo as stylesheet in a .html file

前端 未结 5 718
感情败类
感情败类 2020-12-01 06:17

I\'ve got a repository on github with a .css file in it. Is there any way to have github serve this file in a way that I can consume it in a web page?

In other words

5条回答
  •  失恋的感觉
    2020-12-01 07:02

    You have to use RawGit which, is a part of MaxCDN, serve files directly from the GitHub repository with the correct content type header. Full tutorial, click here

提交回复
热议问题