2014-12-05 88 views
1

彩動畫我有這樣的HTML代碼:製作圖像忽略CSS

<a href="(link)" target="_blank"><img src="(image source)" title="Click to go to a website!" style="position:fixed;top:10px;left:10px;z-index:999"/></a> 

這裏是我的CSS代碼:

a { 
color: inherit; 
text-decoration: underline; 
-webkit-animation: hue 60s infinite linear; 
} 

a:hover { 
color: #f35626; 
} 

但我想要做的就是讓這形象(以上面的HTML代碼)不使用上面顯示的CSS代碼,因爲CSS用於我網站的其他部分。任何人都知道嗎?

謝謝。

+1

你是什麼具體的形象呢?目前還不清楚的問題,我... – 2014-12-05 22:34:47

+0

的HTML代碼我之前發佈的,那就是形象,讓我改我的問題。 – 2014-12-05 22:36:18

+0

如果它不是_be counting_,那麼它可能太_specific_? – Banzay 2014-12-05 22:39:36

回答

0

你可以把一個類圖像鏈接,篩選出來在你的CSS

<a class="imageLink" href="(link)" target="_blank"><img src="(image source)" title="Click to go to a website!" style="position:fixed;top:10px;left:10px;z-index:999"/></a> 

CSS:

a { 
    color: inherit; 
    text-decoration: underline; 
} 

a:not(.imageLink) { 
    -webkit-animation: hue 60s infinite linear; 
} 

a:hover { 
    color: #f35626; 
} 
+0

這工作完全!感謝您的幫助:) – 2014-12-05 22:55:25

+0

不錯!樂意效勞! =) – mikelt21 2014-12-05 22:57:05

+0

哎,遺憾的響應晚了,但我知道你編輯了這個前一陣子到新的,你還有舊的? – 2014-12-06 00:29:04

0
a img { -webkit-animation: none !important; }