[英]Firefox not applying styles to “first-child:first-letter”
我正在嘗試將某種樣式應用於標題中的第一個字母,該標題由文本組成。 我的網頁在這里: http : //smarterinfive.com
它在Chrome中運行良好,但在FF中根本不適用。 以下是我已嘗試應用我的樣式的屬性,但無效(在FF中):
header[role="banner"] .branding:first-letter {
background: #000;
}
.branding:first-child:first-letter {
background: #000;
}
.branding h1 a:first-child:first-letter {
background: #000;
}
似乎任何帶有first-letter
或first-child:first-letter
不起作用,但是只有 first-child
才是 。
我也嘗試過:
!important
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.