How can I apply CSS style changes just for one page?

后端 未结 4 1082
攒了一身酷
攒了一身酷 2020-12-18 02:36

I have two css files:

  1. A main file (main.css)

  2. A specific page file (page5.css). My page.css contains main.css (@import url(main.css));)

4条回答
  •  囚心锁ツ
    2020-12-18 02:45

    Just re-define it somewhere after your @import directive:

    #content { height: 456px }
    

    for identical CSS selectors, the latter rule overwrites the former.

提交回复
热议问题