📜  overiade main style only for specific page sass - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:32.988000             🧑  作者: Mango

代码示例1
1

Solution 1: Introduce a style attribute directly on the element on that specific page (style="display:none;"). Be aware the important will override this style. So either remove important from you sass or add it to the inline one.

Solution 2: Put an specific class or id on the element on that page that you can then reference in your sass.

Solution 3: Introduce a unique id on the body for each page that you can then reference in your sass to apply styles to elements on specific pages.