How do I link external style sheet to multiple pages and folders?

后端 未结 2 2037
悲哀的现实
悲哀的现实 2021-01-06 18:01

im building a pretty large website that will have many pages and folders. I have 1 stylesheet.

How do I add the style sheet to \"ALL\" of these folders? I didnt have

2条回答
  •  遥遥无期
    2021-01-06 18:37

    You need to refer to it with root-relative or absolute path instead of relative:

     
    

    instead of "style.css" refer to it as "/this/is/my/path/to/my/files/style.css". If your file is in the root directory would be "/style.css"

     
    

    If you'd like to have an absolute path:

     
    

提交回复
热议问题