代码改变世界

Change the ICON of your website in favorite,address and shortcut bars

2012-12-21 14:07  craystall  阅读(291)  评论(0)    收藏  举报

  1:make a .ico image and name it as "favicon.ico", and then put it to the root directory of the application.

  Notes:It applies to all browsers' address icon and favorite icon

  2:do some changes to the <head>
  >> IE/Firefox address bar
< link rel="icon" href="favicon.ico" type="image/x-icon">
< link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon">

  >> favorite bar
< link rel="Bookmark" href="favicon.ico" type="image/x-icon">