1
我想将我的图标从另一个链接添加到HTML元素,并且它可点击。如何将新图标添加到HTML元素的CSS类
与类,类名称图标关联的图标。
<a href="#" class="icon" title="shareStatus"></a>
注: 我需要把图标从另一个来源。
你的建议将是可取
我想将我的图标从另一个链接添加到HTML元素,并且它可点击。如何将新图标添加到HTML元素的CSS类
与类,类名称图标关联的图标。
<a href="#" class="icon" title="shareStatus"></a>
注: 我需要把图标从另一个来源。
你的建议将是可取
您可以使用类似下面的解决方案,使用背景图片:
.icon {
content:"";
width:50px;
height:50px;
background:url('http://placehold.it/50x50');
display:inline-block;
border-radius:50%;
}
<a href="#" class="icon" title="shareStatus"></a>
添加背景图片.icon类像这样的风格sheet background-image:url(“url here”); – Edison