[英]My Custom.css not working
當我檢查網頁時,遇到一個section元素為section#sp-bottom
在樣式控制台中,我看到了
#sp-bottom (
margin: 10px 0px 0px 0px;
}
當我將上述10px
更改為0px
,我可以看到10px
的頁面邊距消失了。
然后在模板的custom.css
中,我添加了
#sp-bottom {
margin: 0px 0px 0px 0px;
}
但是清除緩存頁面和瀏覽歷史記錄后,我仍然顯示10px
有些請教。
嘗試通過將標簽name( section
)添加到css選擇器來提高特異性,
section#sp-bottom {
margin: 0;
}
你可以試試這個。
section#sp-bottom{ margin:0px;}
您可能希望看到這個問題 。
我覺得您嘗試通過瀏覽器編輯CSS。 內容在內存中,因此當您清除緩存時,它將重置。
嘗試這個
#sp-bottom {
margin:0px !important;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.