在根目录下添加 favicon.ico index.html <head> ... <link rel = "bookmark" href = "favicon.ico" type = "image/x-icon"> <link rel = "shortcut icon" href = "favicon.ico"> ... </head>