search

Home  >  Q&A  >  body text

javascript - About the setting and priority of web page favicon

There are two known methods of setting favicon for web pages
1.

<link href="favicon.ico" mce_href="favicon.ico" rel="bookmark" type="image/x-icon" /> 
<link href="favicon.ico" mce_href="favicon.ico" rel="icon" type="image/x-icon" /> 
<link href="favicon.ico" mce_href="favicon.ico" rel="shortcut icon" type="image/x-icon" /> 

2. Prevent favicon.ico

in the root directory of the website

Both methods are valid if used separately.

Current website root directoryhttp://localhost:8080/favicon.icoThere is already a chart and it has taken effect for global use. Some web pages are required to display unique charts. Using the above method will not take effect. The chart at http://localhost:8080/favicon.ico is still displayed.

Please ask classmates who know the answer

grateful!

PHP中文网PHP中文网2788 days ago559

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-19 10:46:29

    The problem is solved, it should be my local cache

    reply
    0
  • Cancelreply