html在标题中加图片,如何添加HTML页面标题的图像?

How to Create a “Favicon.ico” File

1.Create an image 16X16 pixels in size. Yes,it is really small and you can’t really draw much in it. You should also restrict yourself to

the standard Windows 16 colours,although I suspect that 256 colours

will work fine.

If you like,you can also create a 32X32 pixel icon,which will be

scaled to size for the Favorites menu and the location bar. You can

even put both 16X16 and 32X32 pixel icons into the same icon file.

Windows will use the former for its menus and the latter when the user

opens up a folder that is set to display large icons. It’s probably

not really necessary to do this if you can’t be bothered.

2.Save the image as an ICO file (named “favicon.ico”,of course).

3.Upload it to your website. You don’t need to upload one to every directory of your site if you don’t want to waste space – simply put

it in your root directory and the web browsers that support favicons

will apparently locate it eventually. You can also upload it into your

images directory,but you will need to modify your web pages if you

do. See later in this article for more information on this.

Help! My Web Host Doesn’t Allow ICO Files!

If your hosting company does not allow files with the .ICO extension

to be uploaded,you might try to work around it by uploading it (in

binary mode) with some other extension (like GIF). Once it’s on your

site,rename it using your FTP program to the correct extension.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值