2015-10-05 29 views
0

的line-height CSS我已經在Firefox中的字體圖標問題,請檢查圖像 enter image description here與Firefox

CSS:

[class^="icon-"]::before, [class*=" icon-"]::before { 
    font-family: "untitled-font-1" !important; 
    font-style: normal !important; 
    font-variant: normal !important; 
    font-weight: normal !important; 
    line-height: 1; 
    text-transform: none !important; 
} 

在Firefox中的頂欄和底部的鍍鉻這裏的活鏈接

http://mohammadsamy.com/Nest/

+0

請包括一個最小的,尚未完成,代碼在你的問題的再現,而不是鏈接到外部網站。 – TylerH

+0

@TylerH,完成感謝評論 –

+0

@MohamedSamy對不起,但我沒有看到你的截圖項目。你可以創建一個簡化的jsFiddle嗎? –

回答

0

這會更容易地爲我解答,如果您還提供了relev螞蟻html代碼爲了嘗試和測試這,但你有沒有考慮更多的瀏覽器/屏幕不可知的測量類型,如vhem?例如:

[class^="icon-"]::before, [class*=" icon-"]::before { 
    line-height: 1vh; 
} 

如果仍然不起作用,你可以隨時與他們margin-bottompadding-bottom屬性上。