如何将网站图标插入我的搜索表单?
我现在了解如何将网站图标添加到我网站的标题栏,但我不太了解如何将网站图标添加到 html 表单(搜索栏)
我尝试使用 css 并将其添加为具有以下属性的背景 no-repeat scroll 7px 7px; padding-left:30px;
但这并没有做任何事情。
请帮忙
最佳答案
在<head>
您网站的部分添加此
<link rel="icon" type="image/png" href="/pathToImage/image.png"/>
确保您的网站图标是 16x16 像素并且是 .ico 格式。
请记住,chrome 不会显示错误。
关于html - 将 Favicon 插入到 html 表单中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32750747/