Page-specific css rules - where to put them?

后端 未结 11 1935
粉色の甜心
粉色の甜心 2021-02-05 05:52

Often when I\'m designing a site, I have a need for a specific style to apply to a specific element on a page and I\'m absolutely certain it will only ever apply to that element

11条回答
  •  花落未央
    2021-02-05 06:48

    For that situation, I think putting the page-specific style information in the header is probably the best solution. Polluting your site-wide style sheet seems wrong, and I agree with your take on inline styles.

提交回复
热议问题