1
所以我在div
裏面有一個button
。我想製作font-weight: bold
,所以我把它放在CSS中。我啓動了該網站,並且該按鈕的文本不是加粗。然後我用Firebug檢查它並且font-weight: bold
甚至不在那裏?當我在螢火蟲中手動輸入時,我的文字變成加粗,就像我想要的那樣。不按css屬性的按鈕
我與引導工作,這裏是按鈕的CSS:
.btn-primary {
background: url("../img/bg-nav.png") repeat-x scroll left bottom #198901;
color: #ffffff;
font: 17px "bowlby_oneregular",sans-serif !important;
font-weight: bold;
text-transform: uppercase;
}
我覺得很奇怪,它並沒有使用Firebug顯示出來,可是當我把它放在那裏有它的Firebug工作
如果您將'font'分割爲'font-size'和'font-family',或者如果您移除了'!important',它會有效。 – Xufox
它可以在Chrome和Firefox上使用。 http://jsfiddle.net/a_incarnati/gcnwcf7e/ –
@Xufox這是它謝謝你!有什麼辦法可以將其標記爲我的問題的答案? – RandomPerson