2016-05-31 101 views
0

這裏是我的網站:http://www.iliveaccountable.com/爲什麼字體樣式不能去除'斜體'樣式?

我試圖刪除我的導航欄的第一個元素的斜體風格並將它更改爲font-style: normal;,但它似乎並不奏效。

enter image description here

這裏是我的CSS:

li#menu-item-15113 { 
    text-transform: none; 
    font-family: Caviar Dreams; 
    font-style: normal !important; 
} 

#menu-item-15113 a { 
    text-transform: none !important; 
    font-family: Caviar Dreams !important; 
    font-style: normal !important; 
} 

我想知道我應該做些什麼來刪除第一個菜單鏈接上斜體?任何想法?如果你願意,你可以在我的網站上檢查元素。

+0

喜.header-V4 #navigation> ul>李:首先,孩子{FONT-FAMILY: 'Helvetica Neue字體',黑體,Arial,sans-serif!important; font-style:normal!important;} – 2016-05-31 05:39:16

+0

仍然沒有工作仍然 –

+0

我看不到第一個菜單http://www.iliveaccountable.com/請檢查 – 2016-05-31 10:03:44

回答

0

嘗試添加下面的CSS規則:

header-v4 #navigation > ul > li:first-child a { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;  
    font-style: normal !important; 
} 
+0

試過這個,但沒有工作。 –

1

我通過CSS驗證(check the results)跑了您的網頁,它似乎像你有在那裏的幾個問題。其中一些你應該忽略,因爲驗證者不理解像gardients這樣的東西。

然而,似乎有一些簡單和相當關鍵的問題,如丟失}封閉等等。

這可能就是您的font-style: normal無法正常工作的原因,即使使用!important這也讓我懷疑代碼中是否存在一些分析錯誤。當代碼崩潰時,如果它確實存在,它將無法正常工作。

我希望這有助於!

0

Cruch變種:使用 //改變度NUM爲您的字體

#menu-item-15113 a { 
transform: skewY(10deg) rotate(-10deg); 
} 
相關問題