早上好,
我想修改我的博客文章頁面的 CSS,但如果我這樣做,也會更改 Woocommerce 產品頁面的描述文本,因為兩者都被標識為“p”。
p, ul, ol, pre, h1, h2, h3, h4, h5, h6, table, form {
margin-bottom: 20
px
;
line-height: 1.786em;
font-size: 16px;
color: #2f2b35;
}
我喜歡更改文本的頁面示例:https : //lirairiedamase.com/blog/quelle-bible-choisir/
我不想更改文本(描述)的頁面示例:https : //lirairiedamase.com/boutique/sainte-ecriture/bible-expliquee-et-commentaires/commentaire-des-psaumes-2/
先感謝您。
uj5u.com熱心網友回復:
嘗試將此添加到您的 css
#content > .entry > * {
margin-bottom: 20px;
line-height: 1.786em;
font-size: 16px;
color: #2f2b35;
}
uj5u.com熱心網友回復:
您需要在目標標簽之前添加一個單獨的帖子正文類。
例子:
body.single-post p {
margin-bottom: 20px;
line-height: 1.786em;
font-size: 16px;
color: #2f2b35;}
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/402832.html
標籤:
