<div style="margin:0px auto;padding-top:20px;width:1000px;font-size :90pt;!important;" id="showBroadcastContent">
<ul><strong>Loading Broadcasts...</strong></ul>
</div>
在上面的圖片,顯示的字體來自fistyle.css。不過,我認爲div標籤設置更具優先性。
如何讓div顯示我的字體樣式?
<div style="margin:0px auto;padding-top:20px;width:1000px;font-size :90pt;!important;" id="showBroadcastContent">
<ul><strong>Loading Broadcasts...</strong></ul>
</div>
在上面的圖片,顯示的字體來自fistyle.css。不過,我認爲div標籤設置更具優先性。
如何讓div顯示我的字體樣式?
類型錯誤font-size :90pt;!important;
應當font-size :90pt !important;
你改變代碼:
font-size :90pt;!important;
要
font-size :90pt!important;
它平衡逗號
只是這個檢查螢火..當你用CSS避免駱駝大小寫字母工作
#showBroadcastContent {
margin:0px auto;
padding-top:20px;
width:1000px;
font-size :90pt!important;
}
<div id="showBroadcastContent">
<ul><strong>Loading Broadcasts...</strong></ul>
</div>
請避免直列styling..its不好,你可以將其添加'#showBroadcastContent {字體 - 尺寸:90pt!重要; }' –
我設定了它,但仍然被fistyle.css – daxue
覆蓋你能分享你的網站的網址 –