2016-05-12 106 views
0

我試着改變所有博客文章的字體大小和行高,但沒有奏效。我究竟做錯了什麼?更改字體大小和行heigth wordpress

示例頁面:http://neuronade.com/kopie-sdfsdf-3

嘗試代碼:

.mk-single-content{ 
 
    line-height: 1.5em !important; 
 
    font-size: 120% !important; 
 
}

+0

看起來工作正常,當我看,在Chrome瀏覽器中使用檢查器和編輯你的CSS,並且工作,以及我可以看到沒有問題: ) –

+0

你可以清空你的瀏覽器緩存嗎? –

回答

1

更改該選擇器

.mk-single-content * { 
    line-height: 1.5em !important; 
    font-size: 120% !important; 
} 

這將選擇.mk-single-content元件內的所有元素。如果你只想解決特定的元素,使用他們的標籤,而不是「*」

0

嗯,這造型是可以正常使用。可能是你需要清除緩存。

1

您必須定位mk-single-content div內的每個元素。

例如:

.mk-single-content p { 
    font-size: 120%; 
    line-height: 1.5em; 
}