简体   繁体   中英

Get Image inside of title (HTML)

I need a image to be displayed with the title, and I found many stackoverflow questions on how this is done. What is currently the best way to get a favicon to display in all browsers that support Favicons? and Add image in title bar . I did what both of these said (add a.ico file and a.png file), and came up with this (inside the head of the html):

     <link rel="icon" href="/client/imgs/favicon.png" type="image/png" /
     <link rel="shortcut icon" href="/client/favicon.ico" />
     <title>Amaze</title>

I have both of those files, but the image won't show up in localhost or after I deploy it to heroku ( https://labyrinth-sweeper.herokuapp.com/ ). What part did I miss / mess up?

The favicon is visible to me. Maybe there is an old icon in your browser cache? Try something like <link rel="shortcut icon" href="/client/favicon.ico?v=2" /> to force your browser to refresh the icon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM