2016-08-19 64 views
-1
<div style="margin:0px auto;padding-top:20px;width:1000px;font-size :90pt;!important;" id="showBroadcastContent"> 
    <ul><strong>Loading Broadcasts...</strong></ul> 
</div> 

this is firebug shows爲什麼不將字體設置DIV標籤工作?

在上面的圖片,顯示的字體來自fistyle.css。不過,我認爲div標籤設置更具優先性。

如何讓div顯示我的字體樣式?

+0

請避免直列styling..its不好,你可以將其添加'#showBroadcastContent {字體 - 尺寸:90pt!重要; }' –

+0

我設定了它,但仍然被fistyle.css – daxue

+0

覆蓋你能分享你的網站的網址 –

回答

0

類型錯誤font-size :90pt;!important;

應當font-size :90pt !important;

0

你改變代碼:

font-size :90pt;!important; 

font-size :90pt!important; 

它平衡逗號

0

只是這個檢查螢火..當你用CSS避免駱駝大小寫字母工作

#showBroadcastContent { 
 
    margin:0px auto; 
 
    padding-top:20px; 
 
    width:1000px; 
 
    font-size :90pt!important; 
 
}
<div id="showBroadcastContent"> 
 
    <ul><strong>Loading Broadcasts...</strong></ul> 
 
</div>

相關問題