
內容簡介
這個外掛可以為 Genesis 網站標題中的每個單詞添加一個 span 標籤,以便使用 CSS 進行單獨的樣式設定。樣式設定可使用 nth-child() 選擇器進行。
分別對每個單詞進行樣式設定:
對第一個單詞進行樣式設定:
.site-title span:nth-child(1) {
在這裡添加你的樣式
}
對第二個單詞進行樣式設定:
.site-title span:nth-child(2) {
在這裡添加你的樣式
}
對第三個單詞進行樣式設定:
.site-title span:nth-child(3) {
在這裡添加你的樣式
}
閱讀更多有關我們創建此外掛的原因以及如何對其進行樣式設定的示例。
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds a span tag around each word in the Genesis site title for separate styling with css. Styling is done with the nth-child() selector.
Style each word separately:
Style the first word:
.site-title span:nth-child(1) {
add your styles here
}
Style the second word:
.site-title span:nth-child(2) {
add your styles here
}
Style the third word:
.site-title span:nth-child(3) {
add your styles here
}
Read more about why we created the plugin here along with examples of how to style them.
