1. Make ICO file, you can make GIF, JPG, PNG can, size in 16px*16px best
2. In Baidu search "online jpg to ico", there will be such a site, you follow the steps to get an ICO file
3. Place the ICO file at the root of the Web site
4. In your <link rel= "icon" href= "/favicon.ico" type= "Image/x-icon"/>
<link rel= "shortcut icon" href= "/favicon.ico" type= "Image/x-icon"/>
5. If not displayed, then delete the IE temporary files after the refresh, generally come out.
Image conversion to icon website:
http://www.easyicon.net/covert/
http://www.ico.la/
Instance:
<Head> <MetaCharSet= "Utf-8" /> <Linkrel= "icon"href=".. /img/head.jpg "type= "Image/x-icon" /> <Linkrel= "Shortcut"href=".. /img/head.jpg "type= "Image/x-icon" /> <title>Home</title> <Linkrel= "stylesheet"type= "Text/css"href=".. /bootstrap/css/bootstrap.min.css "> <Linkrel= "stylesheet"type= "Text/css"href=".. /css/home.css "> <Scripttype= "Text/javascript"src= ".. /bootstrap/js/jquery-1.10.2.min.js "></Script> <Scripttype= "Text/javascript"src= ".. /bootstrap/js/bootstrap.min.js "></Script> </Head>
How to insert a picture icon in the title bar of a page