2017-08-08 30 views
0

有什麼辦法可以設置鏈接text-decoration: none是因爲下劃線嗎?我正在尋找stackoverflow,但nothings作品。首先沒有下劃線,但是當我發送電子郵件時,下劃線是可見的。Gmail簽名刪除文字修飾:無鏈接

<a href="www.google.com">Link</a> 

<a href="www.google.com" style="text-decoration: none;">Link</a> 

<a href="www.google.com" style="text-decoration: none !important;">Link</a> 

<a href="www.google.com" style="text-decoration: none !important; text-decoration: none">Link</a> 

<a href="www.google.com" style="text-decoration-color: transparent">Link</a> 

<a href="www.google.com" style="text-decoration: none;"> 
    <span style="text-decoration: none">Link</span> 
</a> 

回答

-1

嘗試增加重要:

HTML

<a src = "www.google.com" id = "link"/> 

CSS

#link { 
    text-decoration : none !important ; 
} 
+0

不幸的是,Gmail也可以刪除所有CSS ID和類。但{文字裝飾:無!重要; }也不起作用。 – Vesmy