你好,我想知道如何重寫這個使用CSS,我嘗試的內容:「。」在我的班,但沒有工作。子彈在列表中如何將其刪除
.postcontent ul > li::before, .post ul > li::before, .textblock ul > li::before {
content: url('../images/postbullets.png');
感謝您的幫助
你好,我想知道如何重寫這個使用CSS,我嘗試的內容:「。」在我的班,但沒有工作。子彈在列表中如何將其刪除
.postcontent ul > li::before, .post ul > li::before, .textblock ul > li::before {
content: url('../images/postbullets.png');
感謝您的幫助
試試這個:
li {list-style-type: none;}
你如何刪除子彈在列表中?我有一種感覺,我誤讀的問題...
CSS
list-style-type: none;
我需要的是重寫類,所以我可以刪除子彈,我不能改變這個類。 –
研究特殊性和繼承來回答你的問題然後:http://coding.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/ – Mike
這會從列表中刪除子彈,並用圖像替換爲:
.postcontent ul > li {
list-style-type: none;
list-style-image: url('../images/postbullets.png');
}
我需要的是重寫類,所以我可以刪除子彈,我不能改變那個班。 –
我已經準備好嘗試使用list-style-type:none;之前css到這個類,但子彈保持顯示,謝謝你的答案 –
我已經找到了解決方案的覆蓋: #mydiv UL>鋰::之前{內容:無; } –