1、先制作一个名为favicon.ico的小图标,并将其放到网站根目录下
2、在html页面<head></head>标签内加入:
<link rel="shortcut icon" href="favicon.ico" />
OK