css - 如何添加 anchor 符号

标签 css angularjs anchor

当鼠标悬停在 Angular 时,我想在我的网址中添加一个 anchor 符号。这是我的代码,

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

enter image description here

最佳答案

也许是这样

⚓ {{filename}}

<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

关于css - 如何添加 anchor 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35196805/

相关文章:

html - 嵌套的 CSS 网格和图像大小调整

html - 如何使用 css 在圆形 div 中垂直居中我的文本

css - 如何仅将样式应用于 Kendo treeview 父节点

javascript - 我如何检测是否使用 angular.forEach AngularJS 添加了一个对象

javascript - 激活 URL anchor 但不滚动到它?

html - 如何使组织结构图动态化

javascript - 如何在 ng-click 到父元素后添加类 CSS?

javascript - 在路由中运行 .run 时从 Angularjs 中的 url 中删除 #

html - 如何使用带空格的html anchor ?

javascript - 从 innerHTML 或链接到 wikipedia.com 中删除所有 anchor 标记