在网页头部加入
<link rel="shortcut icon"href="portal.ico" type="text/css" />
或者
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
如果icon是gif动态图需要修改type属性
<link rel="icon" href="gif_favicon.gif" type="image/gif" >
效果如下图
portal