Angular - including CSS file in index.html

后端 未结 5 943
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-12 12:27

I\'m trying to use the angular2-busy library in an angular project created with the CLI, but am having an issue importing the stylesheet:

5条回答
  •  清歌不尽
    2021-02-12 12:59

    You are missing the self closing / at the end of your code. It's possible the browser is not fixing this for you.

    
    

    Also removing rel="stylesheet" would definitely not fix the problem since the browser needs to know exactly what kind reference you are referring to.

    If fixing the closing tag does not work then your path is wrong. You can also try adding a ../ to the beginning of your path. This will make it relative to the folder the site is in.

    
    

提交回复
热议问题