CSS not working in stylesheet

前端 未结 7 1135
傲寒
傲寒 2020-12-11 16:52

I have a set of Styles that were first created inside the style attribute on a page.

I want to move it from being on the page itself into a stylesheet.

howe

7条回答
  •  轮回少年
    2020-12-11 17:19

    I had this problem as well, and the reason was that the path had to be updated for some url() references since the css file was in another folder than the html file it previously was called from.

    So basically

    background-image: url('patterns/debut_dark.png');
    

    had to be changed to

    background-image: url('../patterns/debut_dark.png');
    

提交回复
热议问题