Awesome font instead of image in url

时间:2016-04-26 14:18:12

标签: php html css wordpress font-awesome

Well, I have this kind of url

<a href="#" onclick='window.open("https://www.facebook.com/DavarashviliClinic/");return false;'>
  <img src="http://ddc.websitedesign.ge/wp-content/uploads/2016/04/f.png" alt="Facebook" />
</a>

and want to change the facebook png image with awesome font icon code

<i class="fa fa-facebook"></i>

How to do this here in top blue header my site的文字?!

1 个答案:

答案 0 :(得分:2)

只需将<script> $(function() { $('#datepicker').click(function() { $(this).datepicker({ onSelect: function(date) { $(this).datepicker('destroy').html(date); } }); }); $('body').click(function(e) { if ($(e.target).closest('#datepicker').length == 0) { $('#datepicker').datepicker('destroy'); } }); }); </script> 替换为img,然后指定所需的 Font Awesome 类。

您可以通过添加i来更改颜色,也可以使用CSS选择器

style="color:white;"

<小时/>
a i{
   color: white
}