2017-08-02 90 views
1

如何修改這個類的填充在CSS如何減少在CSS填充? (節課)

<section class="wpb_row main_row no-seperator" style="padding-top:70px; padding-bottom:70px;"> 

我想這個代碼,但它不工作:

wpb_row.main_row.no-seperator 
{padding-top:0px; padding-bottom:0px;} 
+0

爲什麼要在

標記中填充以便在要刪除它時開始? – dbrree

+1

您錯過了CSS選擇器上的一個點。它是'wpb_row.main_row.no-seperator',應該是'.wpb_row.main_row.no-seperator' – VictorGodoi

+0

@dbrree我需要幫助,因爲我正在自定義主題 – fredix11

回答

1

css通過html style-tag綁定到特定的元素。你必須編輯或使用!important

.wpb_row.main_row.no-seperator 
{padding-top:0px !important; padding-bottom:0px !important;} 
2

你缺少.在開始你的css:

.wpb_row.main_row.no-seperator 
{padding-top:0px; padding-bottom:0px;}