在网站的时候,一般在浏览器标题栏目前,会有个小图标,只需要这样实现就可以了: <link ref="shortcut icon" type="image/x-icon" href="favicon.ico"/>