2016-02-04 70 views
0

当鼠标悬停在角度中时,我想为我的网址添加锚点符号。这里是我的代码,如何添加锚点符号

<a ng-click="download(File)"><img src="images/filePic.png"/>{{filename}}</a> 

enter image description here

回答

5

像这也许

⚓ {{文件名}}

<a ng-click="download(File)">&#9875; <img src="images/filePic.png"/>{{filename}}</a> 

更新使用CSS悬停使用

a:hover:after { 
 
    content: ' \2693' 
 
}
<a ng-click="download(File)"><img src="http://placehold.it/15x15"/> some filename</a>


更新2 CSS悬停光标

a:hover { 
 
    cursor: url('https://onedrive.live.com/download?resid=EC849DFEDB797EB9!1066&authkey=!AEmDTZM6b8_Ies0&ithint=file%2ccur'),auto; 
 
}
<a ng-click="download(File)"><img src="http://placehold.it/15x15"/> some filename</a> 
 

 
<br><br> 
 
Note there is a small delay (first time hovering) from OneDrive before the anchor shows

+0

感谢您的回复。我的意思是,当鼠标悬停堆栈溢出提问时,锚符号即将到来像明智我想添加到我的链接。 – KSK

+0

当鼠标悬停到我的网址时,我不能更改我的鼠标光标符号吗? – KSK

+0

@sasikumar是的,将尽快更新 – LGSon