制作自己的图标并添加超链接 [英] Making own Icon and adding hyperlink
本文介绍了制作自己的图标并添加超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过单击Icon打开一个超链接,但是我想使用自己的图像(jpg/png/svg)作为Icon.
I want to open a hyperlink by clicking on Icon, but I want to use my own image (jpg/png/svg) as Icon.
这是演示代码.我是否必须制作svg文件并上传到指定的网站下方,并使用这些图标.
This is demo code. Do I have to make svg file and upload on below given website and use these Icons.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
<body>
<i class="fa fa-cloud"></i>
<i class="fa fa-heart"></i>
<i class="fa fa-car"></i>
<i class="fa fa-file"></i>
<i class="fa fa-bars"></i>
</body>
</html>
推荐答案
这允许点击图标
<a href="your link here"> <i class="fa fa-dribbble fa-4x"></i></a>
<a href="your link here"> <i class="fa fa-behance-square fa-4x"></i></a>
<a href="your link here"> <i class="fa fa-linkedin-square fa-4x"></i></a>
<a href="your link here"> <i class="fa fa-twitter-square fa-4x"></i></a>
<a href="your link here"> <i class="fa fa-facebook-square fa-4x"></i></a>
这允许您将自定义图片(带有png的图片)作为图标
This allows your custom image (png preffred) as your icon
<a href"clickable link here"><img src="icon.png"></a>
这篇关于制作自己的图标并添加超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文